classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: javax.rmi.CORBA compatibility fixes.


From: Meskauskas Audrius
Subject: [cp-patches] FYI: javax.rmi.CORBA compatibility fixes.
Date: Mon, 03 Oct 2005 16:34:29 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

2005-10-03  Audrius Meskauskas  <address@hidden>

* javax/rmi/CORBA/ValueHandler.java (getRunTimeCodeBase): Fixed return type.
* gnu/javax/rmi/CORBA/ValueHandlerDelegateImpl.java (getRunTimeCodeBase): Implemented.



Index: gnu/javax/rmi/CORBA/ValueHandlerDelegateImpl.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/gnu/javax/rmi/CORBA/ValueHandlerDelegateImpl.java,v
retrieving revision 1.1
diff -u -r1.1 ValueHandlerDelegateImpl.java
--- gnu/javax/rmi/CORBA/ValueHandlerDelegateImpl.java   2 Oct 2005 19:58:01 
-0000       1.1
+++ gnu/javax/rmi/CORBA/ValueHandlerDelegateImpl.java   3 Oct 2005 14:28:40 
-0000
@@ -38,8 +38,11 @@
 
 package gnu.javax.rmi.CORBA;
 
+import gnu.CORBA.CDR.gnuRuntime;
+
 import org.omg.CORBA.CustomMarshal;
 import org.omg.CORBA.portable.Streamable;
+import org.omg.SendingContext.RunTime;
 
 import java.io.Externalizable;
 import java.io.ObjectStreamClass;
@@ -57,9 +60,14 @@
   extends gnuRmiUtil
   implements ValueHandler
 {
-  public Runtime getRunTimeCodeBase()
+  /**
+   * This implementation associates RunTime with stream rather than with the
+   * value handler and this method is not used in the implementation. It is
+   * implemented just for the sake of compatibility. 
+   */
+  public RunTime getRunTimeCodeBase()
   {
-    throw new Error("Not implemented for ValueHandler");
+    return new gnuRuntime(null, null);
   }
 
   /**
Index: javax/rmi/CORBA/ValueHandler.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/rmi/CORBA/ValueHandler.java,v
retrieving revision 1.5
diff -u -r1.5 ValueHandler.java
--- javax/rmi/CORBA/ValueHandler.java   2 Oct 2005 19:58:01 -0000       1.5
+++ javax/rmi/CORBA/ValueHandler.java   3 Oct 2005 14:16:48 -0000
@@ -79,7 +79,7 @@
    * 
    * @return the codebase.
    */
-  Runtime getRunTimeCodeBase();
+  RunTime getRunTimeCodeBase();
 
   /**
    * Indicates that the given class is responsible itself for writing its

reply via email to

[Prev in Thread] Current Thread [Next in Thread]