Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8336390

[lworld] jdk/internal/util/ReferencedKeyTest.java fails with --enable-preview

XMLWordPrintable

      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

            rriggs Roger Riggs
            fparain Frederic Parain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: