jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • QDox
  • QDOX-120

Doesn't parse java which javac does

  • Log In
  • Views
    • XML
    • Word
    • Printable

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

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

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Max Bowsher added a comment - 14/Jun/07 6:34 PM

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 - 14/Jun/07 6:34 PM 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
Permalink
Max Bowsher added a comment - 14/Jun/07 7:02 PM

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

Show
Max Bowsher added a comment - 14/Jun/07 7:02 PM r479 seems to have fixed this (both for my small example, and WSDL2CodeMojo.java)

People

  • Assignee:
    Joe Walnes
    Reporter:
    Ralph Apel
Vote (0)
Watch (1)

Dates

  • Created:
    02/Jun/07 5:27 AM
    Updated:
    08/Jul/08 4:51 PM
    Resolved:
    08/Jul/08 4:51 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.