[
https://jira.codehaus.org/browse/QDOX-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276787#comment-276787
]
Lars K. W. Gohlke commented on QDOX-226:
----------------------------------------
(y) just stumbling over this.
is this also parsing A as class and enables access to the methods (Until now
name and A are fields)?
{code}
public enum MethodLocationOfEnumMethod
{
A()
{
@Override
private void method()
{
};
};
public abstract void method();
private void test()
{
};
String name = "x";
}
{code}
> Enum constructors are parsed to fields
> --------------------------------------
>
> Key: QDOX-226
> URL: https://jira.codehaus.org/browse/QDOX-226
> Project: QDox
> Issue Type: Bug
> Components: Parser
> Affects Versions: 1.12
> Reporter: Robert Scholte
> Assignee: Robert Scholte
>
> {{parser.y}} contains the following:
> {noformat}
> enum_constructor:
> IDENTIFIER { makeField(new TypeDef($1, 0), ""); } |
> IDENTIFIER CODEBLOCK { makeField(new TypeDef($1, 0), ""); } |
> IDENTIFIER PARENBLOCK { makeField(new TypeDef($1, 0), ""); } |
> IDENTIFIER PARENBLOCK CODEBLOCK { makeField(new TypeDef($1, 0), ""); };
> {noformat}
> This just can't be right, since fields and constructors are two completely
> different things.
--
This message is automatically generated by JIRA.
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