From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26997 invoked by alias); 3 Sep 2005 11:12:10 -0000 Mailing-List: contact mauve-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sources.redhat.com Received: (qmail 26973 invoked by uid 22791); 3 Sep 2005 11:12:03 -0000 Received: from mail17.bluewin.ch (HELO mail17.bluewin.ch) (195.186.18.64) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 03 Sep 2005 11:12:03 +0000 Received: from [127.0.0.1] (83.79.180.75) by mail17.bluewin.ch (Bluewin 7.2.063) id 42DF6DB9007B4FD0 for mauve-discuss@sources.redhat.com; Sat, 3 Sep 2005 11:12:00 +0000 Message-ID: <431984FE.50308@bluewin.ch> Date: Sat, 03 Sep 2005 11:12:00 -0000 From: Meskauskas Audrius Reply-To: audriusa@bluewin.ch User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: mauve-discuss@sources.redhat.com Subject: Possible Mauve bug. Content-Type: multipart/mixed; boundary="------------050607060608070005060404" X-SW-Source: 2005-q3/txt/msg00016.txt.bz2 This is a multi-part message in MIME format. --------------050607060608070005060404 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 987 The attached test case specifically fails when running as part of the Mauve under Sun's jre 1.4.2 but succeeds if executed as standalone program under the mentioned Sun's jre. GNU Classpath implementation passes this test regardless if it is executed standalone or as part of the Mauve. The test case is derived from the prepared Mauve tests for the org.omg.PortableInterceptor. I am not sure if I can commit the test set that totally fails under Sun's jre due, I think, Mauve related reason. This set runs perfectly under JUnit. As I cannot look into the Sun's sources, it is very difficult for me to find the exact reason, why the test fails. All I can do is guess looking at my own code that is working. The CORBA implementation must call Class.forName(String) somewhere; probably that call fails? Probably the problem could be easier solved by somebody who knows Mauve on much better level "I wrote it" (I did not participate in Mauve development). Regards Audrius --------------050607060608070005060404 Content-Type: text/x-java; name="mt.java" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mt.java" Content-length: 1427 // Tags: JDK1.4 package gnu.testlet.org.omg.PortableInterceptor.Interceptor; import gnu.testlet.TestHarness; import gnu.testlet.Testlet; import org.omg.CORBA.LocalObject; import org.omg.CORBA.ORB; import org.omg.PortableInterceptor.ORBInitInfo; import org.omg.PortableInterceptor.ORBInitializer; import java.util.Properties; public class mt extends LocalObject implements Testlet, ORBInitializer { static boolean was_pre_init; static boolean was_post_init; public void test(TestHarness harness) { try { Properties initialisers = new Properties(); initialisers.setProperty( "org.omg.PortableInterceptor.ORBInitializerClass." + getClass().getName(), "" ); // Create and initialize the ORB ORB orb = org.omg.CORBA.ORB.init(new String[ 0 ], initialisers); } catch (Exception e) { e.printStackTrace(); } if (!was_pre_init || !was_post_init) System.out.println("mt:TEST FAILED"); else System.out.println("mt:Test passed"); } public void pre_init(ORBInitInfo parm1) { System.out.println("mt:Pre init called"); was_pre_init = true; } public void post_init(ORBInitInfo parm1) { System.out.println("mt:Post init called"); was_post_init = true; } public static void main(String[] args) { // Run as standalone application. new mt().test(null); } } --------------050607060608070005060404--