Details
-
Bug
-
Resolution: Fixed
-
P4
-
repo-valhalla
-
None
-
generic
-
generic
Description
From https://openjdk.java.net/jeps/8277163:
The class Object is special. Despite being a concrete class, it is not an identity class and supports both identity and value subclasses. However, calls to new Object() continue to create direct identity object instances of the class (suitable, e.g., as synchronization locks).
This calls for:
Reverting the special treatment for 'new Object()'
The class Object is special. Despite being a concrete class, it is not an identity class and supports both identity and value subclasses. However, calls to new Object() continue to create direct identity object instances of the class (suitable, e.g., as synchronization locks).
This calls for:
Reverting the special treatment for 'new Object()'