QDox
  1. QDox
  2. QDOX-120

Doesn't parse java which javac does

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.3
    • Component/s: Parser
    • Labels:
      None
    • Environment:
      FC6, java-1.4.2-sun, maven-2.0.4
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      Here is another example of java source code which is correctly parsed by qdox-1.5, but not by 1.6.2 nor 1.7-SNAPSHOT (r478):
      axis2/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java

      Get it from
      http://svn.apache.org/viewvc/webservices/axis2/tags/java/v1.2/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java?view=log

      It fails with
      [INFO] syntax error @[219,25] in file:/path/BUILD/axis2/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java

      The failing construct is:
      private static final InheritedArtifact[] inheritedArtifacts =

      { new InheritedArtifact("org.apache.ws.commons.axiom", "axiom-api"), new InheritedArtifact("org.apache.ws.commons.axiom", "axiom-impl"), new InheritedArtifact("org.apache.ws.commons", "neethi"), new InheritedArtifact("wsdl4j", "wsdl4j"), new InheritedArtifact("commons-httpclient", "commons-httpclient") }

      ;

      just after the second "new".

        Activity

        Hide
        Max Bowsher added a comment -

        Here is a smaller piece of source which seems to trigger the same bug. (This also succeeds with 1.5 and fails with 1.6.2).

        package test;
        
        public class HelloWorld {
            Object[] foo = {null, null};
        }
        
        Show
        Max Bowsher added a comment - Here is a smaller piece of source which seems to trigger the same bug. (This also succeeds with 1.5 and fails with 1.6.2). package test; public class HelloWorld { Object [] foo = { null , null }; }
        Hide
        Max Bowsher added a comment -

        r479 seems to have fixed this (both for my small example, and WSDL2CodeMojo.java)

        Show
        Max Bowsher added a comment - r479 seems to have fixed this (both for my small example, and WSDL2CodeMojo.java)
        Dennis Lundberg made changes -
        Field Original Value New Value
        Affects Version/s 1.6.2 [ 14091 ]
        Affects Version/s 1.7 [ 11160 ]
        Affects Version/s 1.6 [ 10814 ]
        Dennis Lundberg made changes -
        Assignee Joe Walnes [ jwalnes1 ]
        Fix Version/s 1.6.3 [ 14092 ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Joe Walnes
            Reporter:
            Ralph Apel
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: