Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 6920 invoked from network); 6 Feb 2007 11:14:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2007 11:14:27 -0000 Received: (qmail 72146 invoked by uid 500); 6 Feb 2007 11:14:34 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 72122 invoked by uid 500); 6 Feb 2007 11:14:33 -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 72113 invoked by uid 99); 6 Feb 2007 11:14:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Feb 2007 03:14:33 -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, 06 Feb 2007 03:14:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 248657142BF for ; Tue, 6 Feb 2007 03:14:06 -0800 (PST) Message-ID: <10855635.1170760446146.JavaMail.jira@brutus> Date: Tue, 6 Feb 2007 03:14:06 -0800 (PST) From: "Pavel Pervov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2644) [drlvm][kernel natives] bootclasspath's class loading failure produces wrong throwable In-Reply-To: <3416691.1165929743387.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-2644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470519 ] Pavel Pervov commented on HARMONY-2644: --------------------------------------- Try running this test with the following command line: $HY_HOME/bin/java -Xbootclasspath/a:. Test on RI and on DRLVM without the patch and with the patch applied and see the difference. > [drlvm][kernel natives] bootclasspath's class loading failure produces wrong throwable > -------------------------------------------------------------------------------------- > > Key: HARMONY-2644 > URL: https://issues.apache.org/jira/browse/HARMONY-2644 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Vladimir Beliaev > Assigned To: Alexey Varlamov > Priority: Minor > Attachments: H2846.patch, Test.java > > > DRLVM throws ClassNotFoundException instead of NoClassDefFoundError if it fails to load class from bootclasspath. > I did not find the exact place in specification saying it is wrong behavior, still > 1. JVMS operates with NoClassDefFoundError only in case the loading process failed. > 2. both Sun & JRockit java throws NoClassDefFoundError from the test below. > To reproduce the issue, please do the following: > a) compile attached Test.java (this produces Test.class, SubClass.class and SuperClass.class) > b) remove SuperClass.class > c) run test with SubClass in bootclasspath, e.g. > > $ ls -1 *.class > Test.class SubClass.class > $ java -Xbootclasspath/a:. Test > The output on Reference Implementation: > PASSED: got NoClassDefFoundError... > Note: run Test with SubClass in bootclasspath... > The output on Harmony DRLVM (with -showversion key): > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r486063, (Dec 12 2006), Windows/ia32/msvc 1310, debug build > http://incubator.apache.org/harmony > FAILED: got ClassNotFoundException... > Thanks > Vladimir -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.