Please provide default impl for new methods on Collection/Map interfaces
aleksey.shipilev at oracle.com
Thu Sep 20 03:31:44 PDT 2012
On 09/20/2012 01:37 PM, Peter Reilly wrote:
> However, while attempting to compile some current code with the jdk8 compiler,
> there were a small number of issues with code that implements some java.util
> interfaces. The two that my code had problems with were Collection and Map.
Can you provide a more concrete example? Was that your custom
collections were failing to compile against JDK8?
> I worked around this by compiling a custom version of lamdba with the
> missing methods getting default implementation in
> j.u.AbstractCollection and j.u.AbstractMap.
Aha, so your collections were implementing Collection, but not extending
AbstractCollection? Which methods you had to add? I see most of the new
methods have defaults in Collection.
More information about the lambda-dev