-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b39
-
generic
-
generic
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.
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.