QDox
  1. QDox
  2. QDOX-162

parsing enum constants with annotation failed

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.1
    • Fix Version/s: 1.9.2
    • Component/s: Parser
    • Labels:
      None
    • Environment:
      jdk1.5.0_17
    • Number of attachments :
      0

      Description

      @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")

        Activity

        Hide
        Robert Scholte added a comment -

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

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

        Show
        Robert Scholte added a comment - r598 | rfscholte | 2009-05-13 23:29:20 CEST fix for QDOX/162: support annotations for enum constructors ----------------------------------------------------------------------------
        Robert Scholte made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.9.1 [ 15252 ]
        Fix Version/s 1.10 [ 15020 ]
        Resolution Fixed [ 1 ]
        Assignee Robert Scholte [ rfscholte ]
        Paul Hammant made changes -
        Fix Version/s 1.10 [ 15020 ]
        Fix Version/s 1.9.2 [ 15471 ]

          People

          • Assignee:
            Robert Scholte
            Reporter:
            yusheng
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: