From commits-return-34659-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Mon May 14 05:29:42 2007 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 78566 invoked from network); 14 May 2007 05:29:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2007 05:29:40 -0000 Received: (qmail 98791 invoked by uid 500); 14 May 2007 05:29:45 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 98682 invoked by uid 500); 14 May 2007 05:29:44 -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 98673 invoked by uid 99); 14 May 2007 05:29:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 May 2007 22:29:44 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Sun, 13 May 2007 22:29:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C8E5B714079 for ; Sun, 13 May 2007 22:29:16 -0700 (PDT) Message-ID: <833051.1179120556819.JavaMail.jira@brutus> Date: Sun, 13 May 2007 22:29:16 -0700 (PDT) From: "Aleksey Ignatenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3848) [drlvm][kernel] Accessibility issues when loading class with user defined classloader In-Reply-To: <25879425.1179120556377.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-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksey Ignatenko updated HARMONY-3848: --------------------------------------- Attachment: StackFramesRestoreTest.java > [drlvm][kernel] Accessibility issues when loading class with user defined classloader > ------------------------------------------------------------------------------------- > > Key: HARMONY-3848 > URL: https://issues.apache.org/jira/browse/HARMONY-3848 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Aleksey Ignatenko > Attachments: StackFramesRestoreTest.java > > > Developing StackFramesRestoreTest reliability test I faced with the following issue: > Drlvm does not check class accessibility for class (with default access modifiers) being loaded by user defined classloader . > Attached StackFramesRestoreTest.java shows that Harmony passes the test OK, but RI fails with exception: > java.lang.IllegalAccessException: Class StackFramesRestoreTest can not access a member of class TestClass with modifiers "" > at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65) > at java.lang.Class.newInstance0(Class.java:344) > at java.lang.Class.newInstance(Class.java:303) > at StackFramesRestoreTest.test(StackFramesRestoreTest.java:29) > at StackFramesRestoreTest.main(StackFramesRestoreTest.java:12) > To fix the exception on RI the class TestClass and it's constructor are to be public. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.