defender methods and method of Object

Rémi Forax forax at
Wed Mar 14 10:02:07 PDT 2012

On 03/13/2012 01:40 AM, Henri Gerrits wrote:
> Maybe Object's implementations of equals(), hashCode() and toString() can be moved to a new interface java.lang.ObjectDefaults (ugh!) as (native?) default methods.
> Object can then implement that interface without providing implementations.  And then no special case is needed for Object methods when applying the conflict resolution rules of section 12, and everyone's happy.
> Not sure if this is possible, though.
> Henri

and what about clone or finalize :)


More information about the lambda-dev mailing list