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

Clarify "class loader associated with the current native method"

XMLWordPrintable

    • b95
    • x86
    • windows_xp

      A DESCRIPTION OF THE PROBLEM :
      The documentation reads:

      The Java security model has been extended to allow non-system classes to load and call native methods. In the Java 2 Platform, FindClass locates the [***]class loader associated with the current native method [***]. If the native code belongs to a system class, no class loader will be involved. Otherwise, the proper class loader will be invoked to load and link the named class.

      It is not clear what "class loader associated with the current native method" means. This does not seem to correspond to the thread context class loader and I see no reference to this term anywhere else. Please make it absolutely crystal clear what happens if you invoke FindClass from within a native thread created by native code. Currently, FindClass() always returns NULL within Java Webstart if you invoke it from within a natvie thread that you create within JNI code and it isn't clear why.


      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/functions.html#wp16027
      ###@###.### 2004-12-08 20:36:49 GMT

            sbohne Steve Bohne (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: