Proposal: Sameness operators

Peter Levart peter.levart at gmail.com
Thu Apr 2 23:35:28 PDT 2009


On Fri, Apr 3, 2009 at 1:02 AM, Joe Darcy <Joe.Darcy at sun.com> wrote:

>
> Yes, in JDK 7 I'd like to see
>
>     6797535 Add shared two argument static equals method to the platform
>     http://bugs.sun.com/view_bug.do?bug_id=6797535
>
> addressed in the platform.  I was thinking putting it in a place like a
> new utility class java.util.Object.
>
> -Joe
>
>
Maybe not java.util.Object but java.util.Objects. Using the same name as a
java.lang class prevents IDEs to suggest the imports since java.lang classes
are already in scope. You would have to manually type import statements each
time you wanted to use this method. Nobody does this nowadays. It would be
very inconvenient.

Regards, Peter



More information about the coin-dev mailing list