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

Provide a JNI function to find class with a class name and class loader/module

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:

      Description

      The current JNI FindClass function takes a fully-qualified class name as the argument. It locates the class loader associated with the current native method; that is, the class loader of the class that declared the native method as the initiating class loader for class loading.

      It would be useful to provide a find-class function that takes a name and a module or class loader like Class::forName does.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mchung Mandy Chung
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: