Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 99494 invoked from network); 29 Jan 2007 12:02:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2007 12:02:10 -0000 Received: (qmail 60014 invoked by uid 500); 29 Jan 2007 12:02:16 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 59986 invoked by uid 500); 29 Jan 2007 12:02:16 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 59977 invoked by uid 99); 29 Jan 2007 12:02:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 04:02:16 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 04:02:09 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 888BA7142FA for ; Mon, 29 Jan 2007 04:01:49 -0800 (PST) Message-ID: <25931956.1170072109556.JavaMail.jira@brutus> Date: Mon, 29 Jan 2007 04:01:49 -0800 (PST) From: "Gregory Shimansky (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3074) [drlvm][classloader][jni] When FindClass is called from JNI_OnLoad function it cannot load user application classes In-Reply-To: <27175979.1170072109263.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gregory Shimansky updated HARMONY-3074: --------------------------------------- Attachment: JNI_OnLoad Test.zip Test which reproduces this bug. > [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 > Priority: Minor > Attachments: 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.