Testing non-OpenJDK code [was Re: RFR : 8016446 : (m) Add override forEach/replaceAll to HashMap, Hashtable, IdentityHashMap, WeakHashMap, TreeMap]
Stephen Colebourne
scolebourne at joda.org
Wed Jun 19 09:29:55 UTC 2013
On 19 June 2013 08:08, Peter Levart <peter.levart at gmail.com> wrote:
> I'd also like to suggest something. You have made lots of tests that cover
> the functionality of new default methods in Map and other collections
> interfaces which prove the correctness of behaviour when used with
> implementations of those interfaces in JDK. Perhaps It would be wise to
> extend those tests to include some JDK-external implementations that are
> known to pass basic tests, taken for example from Guava or Apache Commons or
> even JDK7. The interactions of default methods with existing methods in
> various implementations of collection interfaces could reveal "bugs" that
> may be on the part of default methods. I'm sure the maintainers of these
> external implementations will do the same, but may be doing that only after
> JDK8 release.
This seems like a good idea, as it would help ensure more generally
that new JDK versions work with key existing libraries.
Stephen
More information about the core-libs-dev
mailing list