Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 66373 invoked from network); 12 Mar 2008 09:18:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2008 09:18:19 -0000 Received: (qmail 40198 invoked by uid 500); 12 Mar 2008 09:18:16 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 40167 invoked by uid 500); 12 Mar 2008 09:18:16 -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 40158 invoked by uid 99); 12 Mar 2008 09:18:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 02:18:16 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 09:17:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 80A5C234C098 for ; Wed, 12 Mar 2008 02:16:46 -0700 (PDT) Message-ID: <750136832.1205313406525.JavaMail.jira@brutus> Date: Wed, 12 Mar 2008 02:16:46 -0700 (PDT) From: =?utf-8?Q?Vemund_=C3=98stgaard_=28JIRA=29?= To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3521) Functionality for skipping testsuites on certain platforms fails for the new management testsuite on phoneME advanced In-Reply-To: <75176919.1205248006886.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3521?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1257= 7770#action_12577770 ]=20 Vemund =C3=98stgaard commented on DERBY-3521: ---------------------------------------- It would be good to get it merged to 10.4, so I can test the RCs on phoneME= advanced. > Functionality for skipping testsuites on certain platforms fails for the = new management testsuite on phoneME advanced=20 > -------------------------------------------------------------------------= --------------------------------------------- > > Key: DERBY-3521 > URL: https://issues.apache.org/jira/browse/DERBY-3521 > Project: Derby > Issue Type: Test > Components: Test > Environment: phoneME advanced platform > Reporter: Vemund =C3=98stgaard > Assignee: Vemund =C3=98stgaard > Fix For: 10.5.0.0 > > Attachments: 3521-fix-diff > > > It is not possible to run suites.All on phoneME advanced, junit will just= exit with an InvocationTargetException when trying to invoke the suites.Al= l.suite() method. Unwrapping the exception shows that the underlying reason= is a NoClassDefFoundError from the invoke() call in AllPackages.addSuiteBy= Reflection() when trying to load the new management testsuite. > Now, this suite is compiled into 1.5 classfiles, so the Class.forName() c= all before the invoke() is expected to fail with UnsupportedClassVersionErr= or on Java ME and Java SE 1.4. It does fail as expected when running with j= dk 1.4, but on phoneME advanced it does not, possibly a bug in phoneME adva= nced. > A fix/workaround in the testinfrastructure may be to catch InvocationTarg= etException from the try block below, unwrap it and see if it is an instanc= e of LinkageError and if so skip the testsuite. This would make it possible= to run the tests on phoneME advanced. > private static Test addSuiteByReflection(String className) throws Excepti= on > { > try { > Class clz =3D Class.forName(className); > Method sm =3D clz.getMethod("suite", null); > return (Test) sm.invoke(null, null); > } catch (LinkageError e) { > return new TestSuite("SKIPPED: " + className + " - " + > e.getMessage()); > } > }=20 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.