enum deserialization should use Enum.valueOf(Class, String)

XMLWordPrintable

      The latest version of the enumerated type specification adds the following
      method to class java.lang.Enum:

      public static <T extends Enum<T>> T valueOf(Class<T> enumType, String s);

      Use of this method would simplify both the specification and implementation
      of enum deserialization, which currently uses reflection to invoke
      valueOf methods individually defined by enum types.

            Assignee:
            Michael Warres (Inactive)
            Reporter:
            Michael Warres (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: