Issue Type: Bug Bug
Assignee: Ceki Gulcu
Created: 12/Aug/13 12:53 PM
Description:

THIS AFFECTS VERSION 0.8.1 WHICH IS NOT IN JIRA!!!

I have an enum which contains these fields public static final String FLAG_KEY and private final Type type. The AnnotationProcessor extracts not only the enum constants but also these fields.

The output is:

/MyEnum.java:[9,8] Key [FLAG_KEY] present in enum type 

.

The problem is this method:

 @Override
  public List<String> extractKeysInEnum() {
    List<String> keyList = new ArrayList<String>();
    for (VariableElement ve : ElementFilter.fieldsIn(typeElementForEnum.getEnclosedElements())) {
      keyList.add(ve.getSimpleName().toString());
    }
    return keyList;
  }

getEnclosedElements returns these elements and breaks the build.

Environment:

Oracle JDK 6 and OpenJDK 7

Project: CAL10N
Priority: Blocker Blocker
Reporter: Michael Osipov
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