Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4948640

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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: