[ 
http://jira.codehaus.org/browse/QDOX-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte closed QDOX-183.
-------------------------------


I already kind of expected this brute force test answer. But be aware that this 
type of method won't cover every possible bit of specification. And you might 
discover things you would never use (think of QDOX-198). Also think of who is 
responsible for which part of the code. It looks like these tests were 
specially focussed on testing QDox instead of your own code.
Anyhow, I'm glad you're not using QDox to create just a model of the complete 
JDK for further production usage, that just wouldn't make sense. And with your 
issues we were able to improve QDox. So thanks for taking the time to provide 
the testcases.

> 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
>            Assignee: Robert Scholte
>             Fix For: 1.11
>
>
> 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


Reply via email to