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

java/util/concurrent/atomic/AtomicUpdaters.java: java.lang.Error: Unexpected reflective access

XMLWordPrintable

        jdk8 b121

        java.lang.Error: Unexpected reflective access: private int field of class in different package: private java.util.concurrent.atomic.AtomicInteger.value
        at AtomicUpdaters.main(AtomicUpdaters.java:130)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:744)
         - testing AtomicIntegerFieldUpdater
        Testing: private long field of class in different package: private java.util.concurrent.atomic.AtomicLong.value
         - testing getDeclaredField
        java.lang.Error: Unexpected reflective access: private long field of class in different package: private java.util.concurrent.atomic.AtomicLong.value
        at AtomicUpdaters.main(AtomicUpdaters.java:130)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:744)
         - testing AtomicLongFieldUpdater
        Testing: private reference field of class in different package: private java.util.concurrent.atomic.AtomicReference.value
         - testing getDeclaredField
        java.lang.Error: Unexpected reflective access: private reference field of class in different package: private java.util.concurrent.atomic.AtomicReference.value
        at AtomicUpdaters.main(AtomicUpdaters.java:130)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:744)

              chegar Chris Hegarty
              dfazunen Dmitry Fazunenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: