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

Field::get and reflective member access not handling caller = null when invoked by JNI code with no java frames on stack

    Details

      Backports

        Description

        JDK 12 throws a null-pointer exception in internal JDK implementation code at a simple `java.lang.Integer.TYPE` field access.

        jdk.internal.reflect.Reflection.getCallerClass() is returning null for some reason and thus checkAccess(caller, obj); fails

        https://github.com/s-u/rJava/issues/175

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mchung Mandy Chung
                  Reporter:
                  shadowbug Shadow Bug
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: