EnumSet and reification

cowwoc cowwoc at bbs.darktech.org
Sat Oct 5 02:30:37 UTC 2013


Hi,

     Out of curiosity, is JDK 8's type reification improved enough so 
that we can replace

<E extends Enum<E>> EnumSet<E> EnumSet.noneOf(Class<E>)

     with

<E extends Enum<E>> EnumSet<E> EnumSet.noneOf()

     and the JDK will figure out the value of E based on the expected 
return type? If so, can we make this API change?

Thanks,
Gili



More information about the core-libs-dev mailing list