[
http://jira.codehaus.org/browse/QDOX-183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=201450#action_201450
]
Marco Soldati commented on QDOX-183:
------------------------------------
no. wait please. I'll come back to you asap.
there is the usual end-of-year pressure, hence i'm a bit short of time. sorry
for the delay.
> Parser Errors when processing jdk-src
> -------------------------------------
>
> Key: QDOX-183
> URL: http://jira.codehaus.org/browse/QDOX-183
> Project: QDox
> Issue Type: Bug
> Environment: QDox 1.10
> Windows XP
> Java 1.6
> Reporter: Marco Soldati
>
> 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"):
> {code}
> 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"));
> }
> }
> {code}
> 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)
> {code}
> 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
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email