Pei-Tang Huang commented on Bug QDOX-240

Generic type make Enum construction parsing fail too:

import java.util.HashMap;

public enum MyEnum {
    MAP(new HashMap<String, Object>()); // Parser throws java.util.EmptyStackException
    
    public final Object defaultValue;
    
    private ClassEnum(Object defaultValue) {
        this.defaultValue = defaultValue;
    }
}

The exception caused by parser.y:352:

TypeArguments: LESSTHAN 
               {
                 typeStack.peek().setActualArgumentTypes(new LinkedList<TypeDef>());
               }
               _TypeArgumentList GREATERTHAN
             ;
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to