QDox
  1. QDox
  2. QDOX-75

Square brackets at end of method definition

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6
    • Component/s: Parser
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Both of these are valid and are equivalent in Java:

      1) public String[] getStuff() {
      2) public String getStuff()[] {

      QDox does not support the second approach, which prevents it from parsing many of the classes in the standard JDK.

      For example java.io.ByteArrayOutputStream.toByteArray():

      Parser.yyerror: com.thoughtworks.qdox.parser.ParseException: syntax
      error @[135,43] in UNKNOWN SOURCE
      com.thoughtworks.qdox.parser.ParseException: syntax error @[135,43] in
      UNKNOWN SOURCE
      at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:504)
      at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:610)
      at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:488)
      at
      com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:296)
      at
      com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:288)

        Activity

        Joe Walnes made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Joe Walnes
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: