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

RedefineDeleteJmethod.java fails with -Xcheck:jni

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 14
    • 14
    • hotspot
    • b18

    Description

      Running serviceability/jvmti/RedefineClasses/RedefineDeleteJmethod.java with -Xcheck:jni fails with the following error:

      FATAL ERROR in native method: non-weak methodID passed to JNI call
      at RedefineDeleteJmethod.jniCallDeleteMe(Native Method)
      at RedefineDeleteJmethod.test(RedefineDeleteJmethod.java:72)
      at RedefineDeleteJmethod.main(RedefineDeleteJmethod.java:90)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@14-internal/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@14-internal/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@14-internal/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@14-internal/Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.lang.Thread.run(java.base@14-internal/Thread.java:830)

      Attachments

        Issue Links

          Activity

            People

              coleenp Coleen Phillimore
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: