[jira] Created: (QDOX-165) ParseException on enum members with annotations that have values

View: New views
5 Messages — Rating Filter:   Alert me  

[jira] Created: (QDOX-165) ParseException on enum members with annotations that have values

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ParseException on enum members with annotations that have values
----------------------------------------------------------------

                 Key: QDOX-165
                 URL: http://jira.codehaus.org/browse/QDOX-165
             Project: QDox
          Issue Type: Bug
          Components: Parser
    Affects Versions: 1.9.1
            Reporter: Benjamin Bentmann


The following code snippet fails to parse
{code:java}
package test;

public enum MyEnum
{

    @Deprecated()
    SOME_VALUE,

    @SuppressWarnings("all")
    ANOTHER_VALUE;

}
{code}

{noformat}
com.thoughtworks.qdox.parser.ParseException: syntax error @[6,17] in src/main/java/test/MyEnum.java
        at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:999)
        at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1305)
        at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:980)
        at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:330)
{noformat}

--
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



[jira] Updated: (QDOX-165) ParseException on enum members with annotations that have values

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Benjamin Bentmann updated QDOX-165:
-----------------------------------

    Attachment: QDOX-165.zip

Attached a test project.

> ParseException on enum members with annotations that have values
> ----------------------------------------------------------------
>
>                 Key: QDOX-165
>                 URL: http://jira.codehaus.org/browse/QDOX-165
>             Project: QDox
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: 1.9.1
>            Reporter: Benjamin Bentmann
>         Attachments: QDOX-165.zip
>
>
> The following code snippet fails to parse
> {code:java}
> package test;
> public enum MyEnum
> {
>     @Deprecated()
>     SOME_VALUE,
>     @SuppressWarnings("all")
>     ANOTHER_VALUE;
> }
> {code}
> {noformat}
> com.thoughtworks.qdox.parser.ParseException: syntax error @[6,17] in src/main/java/test/MyEnum.java
>         at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:999)
>         at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1305)
>         at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:980)
>         at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:330)
> {noformat}

--
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



[jira] Closed: (QDOX-165) ParseException on enum members with annotations that have values

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Robert Scholte closed QDOX-165.
-------------------------------

         Assignee: Robert Scholte
       Resolution: Duplicate
    Fix Version/s: 1.10

duplicate of QDOX-162

> ParseException on enum members with annotations that have values
> ----------------------------------------------------------------
>
>                 Key: QDOX-165
>                 URL: http://jira.codehaus.org/browse/QDOX-165
>             Project: QDox
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: 1.9.1
>            Reporter: Benjamin Bentmann
>            Assignee: Robert Scholte
>             Fix For: 1.10
>
>         Attachments: QDOX-165.zip
>
>
> The following code snippet fails to parse
> {code:java}
> package test;
> public enum MyEnum
> {
>     @Deprecated()
>     SOME_VALUE,
>     @SuppressWarnings("all")
>     ANOTHER_VALUE;
> }
> {code}
> {noformat}
> com.thoughtworks.qdox.parser.ParseException: syntax error @[6,17] in src/main/java/test/MyEnum.java
>         at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:999)
>         at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1305)
>         at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:980)
>         at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:330)
> {noformat}

--
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



[jira] Reopened: (QDOX-165) ParseException on enum members with annotations that have values

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Paul Hammant reopened QDOX-165:
-------------------------------


> ParseException on enum members with annotations that have values
> ----------------------------------------------------------------
>
>                 Key: QDOX-165
>                 URL: http://jira.codehaus.org/browse/QDOX-165
>             Project: QDox
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: 1.9.1
>            Reporter: Benjamin Bentmann
>            Assignee: Robert Scholte
>             Fix For: 1.10
>
>         Attachments: QDOX-165.zip
>
>
> The following code snippet fails to parse
> {code:java}
> package test;
> public enum MyEnum
> {
>     @Deprecated()
>     SOME_VALUE,
>     @SuppressWarnings("all")
>     ANOTHER_VALUE;
> }
> {code}
> {noformat}
> com.thoughtworks.qdox.parser.ParseException: syntax error @[6,17] in src/main/java/test/MyEnum.java
>         at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:999)
>         at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1305)
>         at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:980)
>         at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:330)
> {noformat}

--
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



[jira] Closed: (QDOX-165) ParseException on enum members with annotations that have values

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Paul Hammant closed QDOX-165.
-----------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 1.10)
                   1.9.2

> ParseException on enum members with annotations that have values
> ----------------------------------------------------------------
>
>                 Key: QDOX-165
>                 URL: http://jira.codehaus.org/browse/QDOX-165
>             Project: QDox
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: 1.9.1
>            Reporter: Benjamin Bentmann
>            Assignee: Robert Scholte
>             Fix For: 1.9.2
>
>         Attachments: QDOX-165.zip
>
>
> The following code snippet fails to parse
> {code:java}
> package test;
> public enum MyEnum
> {
>     @Deprecated()
>     SOME_VALUE,
>     @SuppressWarnings("all")
>     ANOTHER_VALUE;
> }
> {code}
> {noformat}
> com.thoughtworks.qdox.parser.ParseException: syntax error @[6,17] in src/main/java/test/MyEnum.java
>         at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:999)
>         at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1305)
>         at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:980)
>         at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:330)
> {noformat}

--
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