Re: default methods inherited by EnumSet and EnumMap

2016-12-06 Thread Paul Sandoz
I logged this issue for EnumSet/EnumMap: https://bugs.openjdk.java.net/browse/JDK-8170826 Paul. > On 6 Dec 2016, at 09:53, Martin Buchholz wrote: > > Almost every core library collection class can benefit from overriding > those default met

Re: default methods inherited by EnumSet and EnumMap

2016-12-06 Thread Martin Buchholz
Almost every core library collection class can benefit from overriding those default methods for performance. But it hasn't been done consistently - I noticed this myself recently in other collection classes; we have an effort under way to fix that for jdk9 (notably ArrayDeque). But EnumMap/EnumSe

default methods inherited by EnumSet and EnumMap

2016-12-06 Thread Michael Hixson
Hello, I notice that EnumSet and EnumMap don't override any of the default methods that were added to collections in Java 8. Were they specifically considered then avoided during the Java 8 upgrades, or was it simply that no one got around to optimizing them? Are there existing issues/bugs for o