From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17598 invoked by alias); 17 Oct 2005 17:13:28 -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 17548 invoked by uid 22791); 17 Oct 2005 17:13:26 -0000 Received: from smtp5.wanadoo.fr (HELO smtp5.wanadoo.fr) (193.252.22.26) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 17 Oct 2005 17:13:26 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0502.wanadoo.fr (SMTP Server) with ESMTP id 54DEF1C00187 for ; Mon, 17 Oct 2005 19:13:23 +0200 (CEST) Received: from [192.168.0.212] (AVelizy-151-1-14-170.w82-120.abo.wanadoo.fr [82.120.156.170]) by mwinf0502.wanadoo.fr (SMTP Server) with ESMTP id 671501C001F7; Mon, 17 Oct 2005 19:13:22 +0200 (CEST) X-ME-UUID: 20051017171322422.671501C001F7@mwinf0502.wanadoo.fr Message-ID: <4353DBB0.10807@menlina.com> Date: Mon, 17 Oct 2005 17:13:00 -0000 From: Nicolas Geoffray User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050913) MIME-Version: 1.0 To: mauve-discuss@sourceware.org Subject: tests with rmic Content-Type: multipart/mixed; boundary="------------020408010903060308020103" X-SW-Source: 2005-q4/txt/msg00009.txt.bz2 This is a multi-part message in MIME format. --------------020408010903060308020103 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 536 Hi everyone, I found what might be a bug in gnu classpath and I would like to commit a testlet in mauve. The thing is, my test involves compiling with rmic and launching two gnu classpath jvms. I never commited in mauve, but seeing other testlets, i didn't found ways to commit such a test. I attached the files. This is how you launch the test: gcj -C Main.java gcj -C ReceiveObject.java gcj -C ReceiveObjectImpl.java rmic ReceiveObjectImpl rmiregistry & jamvm ReceiveObjectImpl & jamvm Main Any suggestions? Thanks, Nicolas --------------020408010903060308020103 Content-Type: text/x-java; name="Main.java" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Main.java" Content-length: 443 import java.rmi.Naming; public class Main{ class Foo implements java.io.Serializable{} class Bar implements java.io.Serializable{ Foo f = new Foo(); } public static void main(String[]args){ try{ Bar b = new Bar(); ReceiveObject ref = (ReceiveObject) Naming.lookup("rmi://localhost/ReceiveObject"); ref.receiveObject(b); }catch(Exception e){ System.out.println("Error : " + e ); } } } --------------020408010903060308020103 Content-Type: text/x-java; name="ReceiveObject.java" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ReceiveObject.java" Content-length: 179 import java.rmi.Remote; import java.rmi.RemoteException; public interface ReceiveObject extends Remote{ public Object receiveObject(Object unknown) throws RemoteException; } --------------020408010903060308020103 Content-Type: text/x-java; name="ReceiveObjectImpl.java" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ReceiveObjectImpl.java" Content-length: 535 import java.rmi.*; import java.rmi.server.*; public class ReceiveObjectImpl extends UnicastRemoteObject implements ReceiveObject{ public ReceiveObjectImpl() throws RemoteException{ } public Object receiveObject(Object unknown) throws RemoteException{ System.out.println(unknown); return null; } public static void main(String[] args){ try{ ReceiveObject ref = new ReceiveObjectImpl(); Naming.rebind("ReceiveObject", ref); }catch(Exception e){ e.printStackTrace(); } } } --------------020408010903060308020103--