You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2007/02/09 16:55:06 UTC

[jira] Closed: (HARMONY-3074) [drlvm][classloader][jni] When FindClass is called from JNI_OnLoad function it cannot load user application classes

     [ https://issues.apache.org/jira/browse/HARMONY-3074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky closed HARMONY-3074.
--------------------------------------

    Resolution: Fixed

Patch and regression test for this bug are applied at 505334.

> [drlvm][classloader][jni] When FindClass is called from JNI_OnLoad function it cannot load user application classes
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3074
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3074
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Gregory Shimansky
>         Assigned To: Gregory Shimansky
>            Priority: Minor
>         Attachments: H3074.patch, JNI_OnLoad Test.zip
>
>
> I've created a program which has a native library and it has JNI_OnLoad function. When this function tries to load a user application class via FindClass, loading attempt fails. It looks like it happens because this class is attempted to be loaded with bootstrap class loader which loads classes only from boot class path. So user class cannot be loaded since it is not in boot class path.
> RI loads this user class with system application class loader.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.