Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.11
-
Component/s: None
-
Labels:None
-
Environment:QDox 1.10
Windows XP
Java 1.6
-
Number of attachments :
Description
When I try to parse the JDK sources with qdox-1.10 I get a bunch of errors. I have no idea where they come from?
1. get http://www.java.net/download/jdk6/6u16/promoted/b01/jdk-6u16-fcs-src-b01-jrl-31_jul_2009.jar (132MB)
2. Run the following Java Class (make sure to give enough memory to the JVM: "-Xmx1024M"):
import java.io.File; import com.thoughtworks.qdox.JavaDocBuilder; import com.thoughtworks.qdox.directorywalker.FileVisitor; import com.thoughtworks.qdox.parser.ParseException; public class MainTest { /** * @param args */ public static void main(String[] args) { JavaDocBuilder builder = new JavaDocBuilder(); builder.setErrorHandler(new JavaDocBuilder.ErrorHandler() { @Override public void handle(ParseException parseException) { System.err.println("Exception while parsing file: " + parseException.getMessage()); } }); builder.addSourceTree(new File("C:\\apps\\jdk-1_6-src\\j2se\\src\\share\\classes")); } }
3. I get the following errors: (some of the nio-files are not valid java as they contain pre-processing directives but others like the mbeans-stuff seems to be fine)
Exception while parsing file: syntax error @[145,21] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/com/sun/jmx/mbeanserver/MBeanSupport.java Exception while parsing file: syntax error @[67,29] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/com/sun/jmx/mbeanserver/MXBeanSupport.java Exception while parsing file: syntax error @[100,36] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/com/sun/jmx/mbeanserver/StandardMBeanSupport.java Exception while parsing file: syntax error @[37,5] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/com/sun/tools/javac/code/Source.java Exception while parsing file: syntax error @[280,1] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/com/sun/xml/internal/stream/writers/XMLWriter.java Exception while parsing file: syntax error @[782,39] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/com/sun/xml/internal/ws/api/addressing/WSEndpointReference.java Exception while parsing file: syntax error @[170,46] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/com/sun/xml/internal/ws/server/AbstractInstanceResolver.java Exception while parsing file: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/ByteBufferAs-X-Buffer.java Exception while parsing file: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/charset/Charset-X-Coder.java Exception while parsing file: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/Direct-X-Buffer-bin.java Exception while parsing file: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/Direct-X-Buffer.java Exception while parsing file: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/Heap-X-Buffer.java Exception while parsing file: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/X-Buffer-bin.java Exception while parsing file: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/nio/X-Buffer.java Exception while parsing file: syntax error @[6581,1] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/java/util/Formatter.java Exception while parsing file: syntax error @[209,53] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/javax/management/monitor/Monitor.java Exception while parsing file: syntax error @[342,45] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/javax/management/openmbean/OpenMBeanAttributeInfoSupport.java Exception while parsing file: syntax error @[280,45] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/javax/management/openmbean/OpenMBeanParameterInfoSupport.java Exception while parsing file: syntax error @[146,36] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/javax/management/StandardEmitterMBean.java Exception while parsing file: syntax error @[317,29] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/javax/management/StandardMBean.java Exception while parsing file: syntax error @[72,1] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/org/omg/CORBA/CompletionStatus.java Exception while parsing file: syntax error @[54,1] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/org/omg/CORBA/DefinitionKind.java Exception while parsing file: syntax error @[120,39] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/sun/rmi/transport/tcp/TCPTransport.java Exception while parsing file: syntax error @[42,38] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/sun/tools/jconsole/inspector/Utils.java Exception while parsing file: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/sun/util/CoreResourceBundleControl-XLocales.java Exception while parsing file: syntax error @[8,2] in file:/C:/apps/jdk-1_6-src/j2se/src/share/classes/sun/util/LocaleDataMetaInfo-XLocales.java
1. |
Exception #1 | Closed | Unassigned | ||
2. |
Exception #2 | Closed | Robert Scholte | ||
3. |
Exception #3 | Closed | Unassigned | ||
4. |
Parser exception due to 'final' before an annotation used as methodparameter | Resolved | Robert Scholte | ||
5. |
Parser exception due to double javadoc comment | Resolved | Robert Scholte | ||
6. |
Parsing exception due to operator in constructor of a new Object | Resolved | Robert Scholte | ||
7. |
Parse exception for Generic constructors | Resolved | Robert Scholte |
Activity
Robert Scholte
made changes -
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 1.11 [ 16104 ] | |
Assignee | Robert Scholte [ rfscholte ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Robert Scholte
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
the failures are caused by 6 different exceptions.
I created one sub task per exception and listed all files that are affected.
I know it is not exactly what you wanted from me, but I'm afraid I don't have time for a more detailed analysis.