Details
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
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".
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).