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

ConcurrentSkipListSet.clone() fails with UnsupportedOperationException

XMLWordPrintable

        Simply calling

        new ConcurrentSkipListSet().clone();

        fails with UnsupportedOperationException.
        Sadly, we have no existing jdk tests that call ConcurrentSkipListSet#clone

             [java] 1) testClone(ConcurrentSkipListSetTest)java.lang.UnsupportedOperationException
             [java] at java.base/java.lang.invoke.VarForm.getMemberName(VarForm.java:92)
             [java] at java.base/java.lang.invoke.VarHandleGuards.guard_LL_V(VarHandleGuards.java:49)
             [java] at java.base/java.util.concurrent.ConcurrentSkipListSet.setMap(ConcurrentSkipListSet.java:482)
             [java] at java.base/java.util.concurrent.ConcurrentSkipListSet.clone(ConcurrentSkipListSet.java:147)

              martin Martin Buchholz
              martin Martin Buchholz
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: