Skip to content

Commit 634f73f

Browse files
committed
Workaround for Java 8 bug
1 parent 693c3b4 commit 634f73f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

xml/People.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
// the XOM library from http://www.xom.nu }
44
// {RunFirst: Person}
55
import nu.xom.*;
6+
import java.io.File;
67
import java.util.*;
78

89
public class People extends ArrayList<Person> {
910
public People(String fileName) throws Exception {
10-
Document doc = new Builder().build(fileName);
11+
Document doc = new Builder().build(new File(fileName));
1112
Elements elements =
1213
doc.getRootElement().getChildElements();
1314
for(int i = 0; i < elements.size(); i++)

0 commit comments

Comments
 (0)