parsing enum constants with annotation failed
---------------------------------------------

                 Key: QDOX-162
                 URL: http://jira.codehaus.org/browse/QDOX-162
             Project: QDox
          Issue Type: Bug
          Components: Parser
    Affects Versions: 1.9.1
         Environment: jdk1.5.0_17
            Reporter: yusheng
             Fix For: 1.9.1


@XmlType(name = "BasicType")
@XmlEnum
public enum BasicType {

    @XmlEnumValue("text")
    TEXT("text"),
    @XmlEnumValue("value")
    VALUE("value"),
    @XmlEnumValue("numeric")
    NUMERIC("numeric"),
    @XmlEnumValue("bigNumeric")
    BIG_NUMERIC("bigNumeric"),
    @XmlEnumValue("date")
    DATE("date"),
    @XmlEnumValue("boolean")
    BOOLEAN("boolean"),
    @XmlEnumValue("object")
    OBJECT("object"),
    @XmlEnumValue("group")
    GROUP("group"),
    @XmlEnumValue("totalTally")
    TOTAL_TALLY("totalTally");
    private final String value;

    BasicType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static BasicType fromValue(String v) {
        for (BasicType c: BasicType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}

this class is a jaxb generated class, qdox parser failed to parse enum 
constants with annotation, for example @XmlEnumValue("totalTally")

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


Reply via email to