Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 74468 invoked from network); 10 Mar 2008 20:09:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2008 20:09:44 -0000 Received: (qmail 97409 invoked by uid 500); 10 Mar 2008 20:09:41 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 97158 invoked by uid 500); 10 Mar 2008 20:09:40 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 96920 invoked by uid 99); 10 Mar 2008 20:09:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 13:09:39 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.6.24] (HELO gmp-eb-inf-2.sun.com) (192.18.6.24) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 20:08:50 +0000 Received: from fe-emea-09.sun.com (gmp-eb-lb-2-fe2.eu.sun.com [192.18.6.11]) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m2AK9A6v009290 for ; Mon, 10 Mar 2008 20:09:11 GMT Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JXJ00D016JX9D00@fe-emea-09.sun.com> (original mail from Knut.Hatlen@Sun.COM) for derby-dev@db.apache.org; Mon, 10 Mar 2008 20:09:10 +0000 (GMT) Received: from localhost ([193.71.105.147]) by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JXJ00ATD6N9GQA0@fe-emea-09.sun.com> for derby-dev@db.apache.org; Mon, 10 Mar 2008 20:09:09 +0000 (GMT) Date: Mon, 10 Mar 2008 21:08:23 +0100 From: Knut Anders Hatlen Subject: Re: Problem with addSuiteByReflection() on phoneME advanced platform In-reply-to: <47D56CE0.9030304@sun.com> Sender: Knut.Hatlen@Sun.COM To: derby-dev@db.apache.org Message-id: Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <47D56CE0.9030304@sun.com> User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org Vemund Ostgaard writes: > The past few days it has not been possible to run suites.All on > phoneME advanced, junit will just exit with an > InvocationTargetException when trying to invoke the suites.All.suite() > method. Unwrapping the exception shows that the underlying reason is a > NoClassDefFoundError from the invoke() call in > AllPackages.addSuiteByReflection() when trying to load the new JMX > suite. > > Now, this suite is compiled into 1.5 classfiles, so the > Class.forName() call before the invoke() should have failed with > UnsupportedClassVersionError. It does fail as expected when running > with jdk 1.4, but on phoneME advanced it does not, I think it has to > be a bug in phoneME advanced. Not sure if it's a bug in phoneME. It sounds like the VM is able to read the class file format of Java 1.5 and the class library is based on Java 1.4. Perhaps an odd combination, but not necessarily wrong. > Now, I was pondering if it would make sense to also catch > InvocationTargetException from the try block below, unwrap it and see > if it is an instance of LinkageError and if so skip the > testsuite. This would make it possible to run the tests on phoneME > advanced, despite the bug. Any reason why this would be a bad idea? Sounds like a good idea to me. -- Knut Anders