Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 58900 invoked from network); 13 Feb 2007 13:30:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2007 13:30:26 -0000 Received: (qmail 96352 invoked by uid 500); 13 Feb 2007 13:30:34 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 96334 invoked by uid 500); 13 Feb 2007 13:30:34 -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 96325 invoked by uid 99); 13 Feb 2007 13:30:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 05:30:34 -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; Tue, 13 Feb 2007 05:30:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F06EE71431D for ; Tue, 13 Feb 2007 05:30:05 -0800 (PST) Message-ID: <24527803.1171373405980.JavaMail.jira@brutus> Date: Tue, 13 Feb 2007 05:30:05 -0800 (PST) From: "Mikhail Fursov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3079) [dlrvm][classloader][opt] Opt does not handle exception raised by classloader (assertion fails classloader.cpp:1521) In-Reply-To: <21914103.1170136293668.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-3079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472646 ] Mikhail Fursov commented on HARMONY-3079: ----------------------------------------- Another test to demonstrate the problem: compile and run: import java.io.*; public class Test { public static void main(String args[]) { new File("A.class").renameTo(new File("A.clss")); test(); } static void test() { new File("A.clss").renameTo(new File("A.class")); getA().foo(); } static A getA() {return new A();} } class A { void foo() { System.out.println("PASSED!"); } } > [dlrvm][classloader][opt] Opt does not handle exception raised by classloader (assertion fails classloader.cpp:1521) > -------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-3079 > URL: https://issues.apache.org/jira/browse/HARMONY-3079 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Environment: Win IA32, OPT > Reporter: Aleksey Ignatenko > Attachments: H3079.patch, test.zip > > > Assertion failed - classloader.cpp:1521 on EUT jdtdebug suit. > Testcase:2 methods return the same type, 1-st method calls the 2-nd: > class A; > class B{ > static A getA(){return new A();}} > class C{ > static A getA(){return B.getA();}} > main: C.getA(); > JIT tries to resolve A class 2 times. If class is not accessable, classloader raises ClassNotfoundException 1-st time, JIT does not handle it, then when the 2-nd time JIT tries to resolve the same class VM fails with the assert on loading (because exception was already raised). > The issue here is that JIT does not handle raised exception by classloader in 1 compilation session. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.