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

Robert Scholte resolved QDOX-162.
---------------------------------

         Assignee: Robert Scholte
       Resolution: Fixed
    Fix Version/s:     (was: 1.9.1)
                   1.10

r598 | rfscholte | 2009-05-13 23:29:20 CEST

fix for QDOX/162: support annotations for enum constructors
----------------------------------------------------------------------------

> 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
>            Assignee: Robert Scholte
>             Fix For: 1.10
>
>
> @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