Any chance to see EnumSet implement SortedSet in JDK8?
forax at univ-mlv.fr
Thu Aug 11 13:56:33 PDT 2011
On 08/11/2011 10:19 PM, assembling signals wrote:
> Hello, community!
> Enum does implement Comparable, while EnumSet does NOT implement SortedSet and EnumMap doesn NOT implement SortedMap.
> Should I file a bug report (RFE), would there be a chance to see this being implemented in JDK8?
I've asked the same question with NavigableSet/Map during the JDK6 timeframe
so you should find the answer by Doug Lea on the concurrency-interest list
concurrency-interest at cs.oswego.edu
Furthermore, you can't retrofit EnumSet to implement SortedSet
(an interface that already exists)
because since 1.5, a lot of code was written and some may rely on
the fact that EnumSet doesn't implement SortedSet.
> Best regards,
> Ivan G Shevchenko
More information about the core-libs-dev