Details
Description
These exceptions are caused by pre-processing instructions in the java source code. Hence the files do not consist of valid java code and the exceptions are fine. I opened an issue just for completeness. I'll let it to you to decide if you want to handle such cases or just to reject it.
- com.thoughtworks.qdox.parser.ParseException: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/ByteBufferAs-X-Buffer.java
- com.thoughtworks.qdox.parser.ParseException: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/Direct-X-Buffer-bin.java
- com.thoughtworks.qdox.parser.ParseException: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/Direct-X-Buffer.java
- com.thoughtworks.qdox.parser.ParseException: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/Heap-X-Buffer.java
- com.thoughtworks.qdox.parser.ParseException: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/X-Buffer-bin.java
- com.thoughtworks.qdox.parser.ParseException: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/X-Buffer.java
- com.thoughtworks.qdox.parser.ParseException: syntax error @[6581,1] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/util/Formatter.java
- com.thoughtworks.qdox.parser.ParseException: syntax error @[146,36] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/javax/management/StandardEmitterMBean.java
- com.thoughtworks.qdox.parser.ParseException: syntax error @[317,29] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/javax/management/StandardMBean.java
- com.thoughtworks.qdox.parser.ParseException: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/sun/util/CoreResourceBundleControl-XLocales.java
- com.thoughtworks.qdox.parser.ParseException: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/sun/util/LocaleDataMetaInfo-XLocales.java
at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:992)
at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1298)
at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:973)
at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:322)
at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:354)
at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:350)
at com.thoughtworks.qdox.JavaDocBuilder$2.visitFile(JavaDocBuilder.java:440)
at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:43)
at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:52)
at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:437)
at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:426)
at ch.fhnw.i4ds.yadoc.MainTest.main(MainTest.java:44)
Activity
Field | Original Value | New Value |
---|---|---|
Summary | Exception #6 | Parsing exception due to operator in constructor of a new Object |
Assignee | Robert Scholte [ rfscholte ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Fixed [ 1 ] | |
Fix Version/s | 1.11 [ 16104 ] | |
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Those files that have an error at position [8;2] contain preprocessing statements and are not valid Java.