Proposal: Sameness operators

Joseph D. Darcy Joe.Darcy at Sun.COM
Thu Apr 2 23:47:37 PDT 2009


Peter Levart wrote:
>
> On Fri, Apr 3, 2009 at 1:02 AM, Joe Darcy <Joe.Darcy at sun.com 
> <mailto: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. 

Yes, I meant to type "java.util.Objects"  -- having a class other than 
java.lang.Object named "Object" is just wrong!

-Joe




More information about the coin-dev mailing list