-
Bug
-
Resolution: Fixed
-
P3
-
repo-valhalla
Test fails when run with --enable-preview:
java.lang.IdentityException: java.lang.Long is not an identity class
at java.base/java.util.Objects.requireIdentity(Objects.java:212)
at java.base/java.lang.ref.Reference.<init>(Reference.java:516)
at java.base/java.lang.ref.WeakReference.<init>(WeakReference.java:78)
at java.base/jdk.internal.util.WeakReferenceKey.<init>(WeakReferenceKey.java:53)
at java.base/jdk.internal.util.ReferencedKeyMap.entryKey(ReferencedKeyMap.java:165)
at java.base/jdk.internal.util.ReferencedKeyMap.put(ReferencedKeyMap.java:217)
at java.base/jdk.internal.util.ReferencedKeyTest.populate(ReferencedKeyTest.java:165)
at java.base/jdk.internal.util.ReferencedKeyTest.mapTest(ReferencedKeyTest.java:68)
at java.base/jdk.internal.util.ReferencedKeyTest.main(ReferencedKeyTest.java:49)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1575)
JavaTest Message: Test threw exception: java.lang.IdentityException: java.lang.Long is not an identity class
java.lang.IdentityException: java.lang.Long is not an identity class
at java.base/java.util.Objects.requireIdentity(Objects.java:212)
at java.base/java.lang.ref.Reference.<init>(Reference.java:516)
at java.base/java.lang.ref.WeakReference.<init>(WeakReference.java:78)
at java.base/jdk.internal.util.WeakReferenceKey.<init>(WeakReferenceKey.java:53)
at java.base/jdk.internal.util.ReferencedKeyMap.entryKey(ReferencedKeyMap.java:165)
at java.base/jdk.internal.util.ReferencedKeyMap.put(ReferencedKeyMap.java:217)
at java.base/jdk.internal.util.ReferencedKeyTest.populate(ReferencedKeyTest.java:165)
at java.base/jdk.internal.util.ReferencedKeyTest.mapTest(ReferencedKeyTest.java:68)
at java.base/jdk.internal.util.ReferencedKeyTest.main(ReferencedKeyTest.java:49)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1575)
JavaTest Message: Test threw exception: java.lang.IdentityException: java.lang.Long is not an identity class
- duplicates
-
JDK-8336670 [lworld] Test jdk/internal/util/ReferencedKeyTest.java fails when run with migrated classes
- Closed
- relates to
-
JDK-8338060 jdk/internal/util/ReferencedKeyTest should be more robust
- Resolved
- links to
-
Commit(lworld) openjdk/valhalla/b883585b
-
Review(lworld) openjdk/valhalla/1177