harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r437228 - /incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/
Date Sat, 26 Aug 2006 21:06:33 GMT
Author: ndbeyer
Date: Sat Aug 26 14:06:31 2006
New Revision: 437228

URL: http://svn.apache.org/viewvc?rev=437228&view=rev
Log:
Clean 'java.rmi' source and introduce additional test cases.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/AccessException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/AlreadyBoundException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ConnectException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ConnectIOException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/MarshalException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/MarshalledObject.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/Naming.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/NoSuchObjectException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/NotBoundException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RMISecurityException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RMISecurityManager.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/Remote.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RemoteException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerError.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerRuntimeException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/StubNotFoundException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnexpectedException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnknownHostException.java
    incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnmarshalException.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/AccessException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/AccessException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/AccessException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/AccessException.java
Sat Aug 26 14:06:31 2006
@@ -15,32 +15,15 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public class AccessException extends RemoteException {
     private static final long serialVersionUID = 6314925228044966088L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public AccessException(String msg, Exception cause) {
         super(msg, cause);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public AccessException(String msg) {
         super(msg);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/AlreadyBoundException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/AlreadyBoundException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/AlreadyBoundException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/AlreadyBoundException.java
Sat Aug 26 14:06:31 2006
@@ -15,32 +15,15 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public class AlreadyBoundException extends Exception {
     private static final long serialVersionUID = 9218657361741657110L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public AlreadyBoundException(String msg) {
         super(msg);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public AlreadyBoundException() {
         super();
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ConnectException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ConnectException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ConnectException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ConnectException.java
Sat Aug 26 14:06:31 2006
@@ -15,32 +15,15 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public class ConnectException extends RemoteException {
     private static final long serialVersionUID = 4863550261346652506L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public ConnectException(String msg, Exception cause) {
         super(msg, cause);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public ConnectException(String msg) {
         super(msg);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ConnectIOException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ConnectIOException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ConnectIOException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ConnectIOException.java
Sat Aug 26 14:06:31 2006
@@ -15,32 +15,15 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public class ConnectIOException extends RemoteException {
     private static final long serialVersionUID = -8087809532704668744L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public ConnectIOException(String msg, Exception cause) {
         super(msg, cause);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public ConnectIOException(String msg) {
         super(msg);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/MarshalException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/MarshalException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/MarshalException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/MarshalException.java
Sat Aug 26 14:06:31 2006
@@ -15,32 +15,15 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public class MarshalException extends RemoteException {
     private static final long serialVersionUID = 6223554758134037936L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public MarshalException(String msg, Exception cause) {
         super(msg, cause);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public MarshalException(String msg) {
         super(msg);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/MarshalledObject.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/MarshalledObject.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/MarshalledObject.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/MarshalledObject.java
Sat Aug 26 14:06:31 2006
@@ -15,10 +15,6 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.8.4.2 $
- */
 package java.rmi;
 
 import java.io.IOException;
@@ -29,66 +25,50 @@
 import org.apache.harmony.rmi.MarshalledObjectInputStream;
 import org.apache.harmony.rmi.MarshalledObjectOutputStream;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.8.4.2 $
- */
 public final class MarshalledObject implements Serializable {
     private static final long serialVersionUID = 8988374069173025854L;
-    byte[] objBytes;
-    byte[] locBytes;
-    int hash;
-
-    /**
-     * @com.intel.drl.spec_ref
-     */
+
+    private final byte[] objBytes;
+
+    private final byte[] locBytes;
+
+    private final int hash;
+
     public MarshalledObject(Object obj) throws IOException {
         ByteArrayOutputStream objStream = new ByteArrayOutputStream();
-        MarshalledObjectOutputStream moStream =
-                new MarshalledObjectOutputStream(objStream);
+        MarshalledObjectOutputStream moStream = new MarshalledObjectOutputStream(objStream);
         moStream.writeObject(obj);
         moStream.flush();
         objBytes = objStream.toByteArray();
         locBytes = moStream.getLocBytes();
 
         // calculate hash code
-        hash = 0;
+        int hash = 0;
 
         for (int i = 0; i < objBytes.length; ++i) {
             hash = hash * 31 + objBytes[i];
         }
+        this.hash = hash;
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
+    @Override
     public boolean equals(Object obj) {
         if (!(obj instanceof MarshalledObject)) {
             return false;
         }
         MarshalledObject anotherObj = (MarshalledObject) obj;
-        return (hash == anotherObj.hash)
-                || (Arrays.equals(objBytes, anotherObj.objBytes));
+        return (hash == anotherObj.hash) || (Arrays.equals(objBytes, anotherObj.objBytes));
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public Object get() throws IOException, ClassNotFoundException {
         if (objBytes == null) {
             return null;
         }
-        MarshalledObjectInputStream moin =
-                new MarshalledObjectInputStream(objBytes, locBytes);
+        MarshalledObjectInputStream moin = new MarshalledObjectInputStream(objBytes, locBytes);
         return moin.readObject();
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
+    @Override
     public int hashCode() {
         return hash;
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/Naming.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/Naming.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/Naming.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/Naming.java
Sat Aug 26 14:06:31 2006
@@ -15,10 +15,6 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.12.4.2 $
- */
 package java.rmi;
 
 import java.net.MalformedURLException;
@@ -27,34 +23,20 @@
 import java.rmi.registry.LocateRegistry;
 import java.rmi.registry.Registry;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * This class could not be instantiated.
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.12.4.2 $
- */
 public final class Naming {
 
     // This class could not be instantiated.
     private Naming() {
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
-    public static String[] list(String name)
-            throws RemoteException, MalformedURLException {
+    public static String[] list(String name) throws RemoteException, MalformedURLException
{
         if (name == null) {
             throw new NullPointerException("URL could not be null.");
         }
         RegistryURL url = getRegistryURL(name, true);
         Registry reg = LocateRegistry.getRegistry(url.host, url.port);
         String[] names = reg.list();
-        String regName = "//" + ((url.host == null) ? "" : url.host) + ":"
-                + url.port + "/";
+        String regName = "//" + ((url.host == null) ? "" : url.host) + ":" + url.port + "/";
 
         for (int i = 0; i < names.length; ++i) {
             names[i] = regName + names[i];
@@ -62,11 +44,8 @@
         return names;
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
-    public static void rebind(String name, Remote obj)
-            throws RemoteException, MalformedURLException {
+    public static void rebind(String name, Remote obj) throws RemoteException,
+            MalformedURLException {
         if (name == null) {
             throw new NullPointerException("URL could not be null.");
         }
@@ -75,11 +54,8 @@
         reg.rebind(url.name, obj);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
-    public static void unbind(String name)
-            throws RemoteException, NotBoundException, MalformedURLException {
+    public static void unbind(String name) throws RemoteException, NotBoundException,
+            MalformedURLException {
         if (name == null) {
             throw new NullPointerException("URL could not be null.");
         }
@@ -88,12 +64,8 @@
         reg.unbind(url.name);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
-    public static void bind(String name, Remote obj)
-            throws AlreadyBoundException, MalformedURLException,
-            RemoteException {
+    public static void bind(String name, Remote obj) throws AlreadyBoundException,
+            MalformedURLException, RemoteException {
         if (name == null) {
             throw new NullPointerException("URL could not be null.");
         }
@@ -102,11 +74,8 @@
         reg.bind(url.name, obj);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
-    public static Remote lookup(String name)
-            throws NotBoundException, MalformedURLException, RemoteException {
+    public static Remote lookup(String name) throws NotBoundException, MalformedURLException,
+            RemoteException {
         if (name == null) {
             throw new NullPointerException("URL could not be null.");
         }
@@ -116,35 +85,33 @@
     }
 
     /*
-     * Parse the given name and returnes URL containing parsed parameters.
+     * Parse the given name and returns URL containing parsed parameters.
      */
-    private static RegistryURL getRegistryURL(String strUrl,
-                                              boolean ignoreEmptyNames)
+    private static RegistryURL getRegistryURL(String strUrl, boolean ignoreEmptyNames)
             throws MalformedURLException {
         URI uri;
 
         try {
             uri = new URI(strUrl);
         } catch (URISyntaxException use) {
-            throw new MalformedURLException("Invalid URL \"" + strUrl + "\":"
-                    + use);
+            throw new MalformedURLException("Invalid URL \"" + strUrl + "\":" + use);
         }
         String prot = uri.getScheme();
 
         if ((prot != null) && !prot.toLowerCase().equals("rmi")) {
-            throw new MalformedURLException(
-                    "Non-rmi protocol in URL \"" + strUrl + "\": " + prot);
+            throw new MalformedURLException("Non-rmi protocol in URL \"" + strUrl + "\":
"
+                    + prot);
         }
 
         if (uri.getUserInfo() != null) {
-            throw new MalformedURLException("Invalid character ('@') in URL \""
-                    + strUrl + "\" host part.");
+            throw new MalformedURLException("Invalid character ('@') in URL \"" + strUrl
+                    + "\" host part.");
         } else if (uri.getQuery() != null) {
-            throw new MalformedURLException("Invalid character ('?') in URL \""
-                    + strUrl + "\" name part.");
+            throw new MalformedURLException("Invalid character ('?') in URL \"" + strUrl
+                    + "\" name part.");
         } else if (uri.getFragment() != null) {
-            throw new MalformedURLException("Invalid character ('#') in URL \""
-                    + strUrl + "\" name part.");
+            throw new MalformedURLException("Invalid character ('#') in URL \"" + strUrl
+                    + "\" name part.");
         }
         int port = uri.getPort();
         String auth = uri.getAuthority();
@@ -154,8 +121,8 @@
             try {
                 port = Integer.parseInt(auth.substring(1));
             } catch (NumberFormatException nfe) {
-                throw new MalformedURLException("Invalid port number in URL \""
-                        + strUrl + "\": " + auth.substring(1));
+                throw new MalformedURLException("Invalid port number in URL \"" + strUrl
+                        + "\": " + auth.substring(1));
             }
         }
 
@@ -166,8 +133,8 @@
 
         if (!ignoreEmptyNames) {
             if (path == null || path.length() == 0) {
-                throw new MalformedURLException(
-                        "Name could not be empty (URL: \"" + strUrl + "\").");
+                throw new MalformedURLException("Name could not be empty (URL: \"" + strUrl
+                        + "\").");
             }
         }
 
@@ -182,8 +149,7 @@
         return new RegistryURL(host, port, path);
     }
 
-
-    /*
+    /**
      * Auxiliary class holding information about host, port and name.
      */
     private static class RegistryURL {
@@ -197,7 +163,7 @@
         // bind name
         String name;
 
-        /*
+        /**
          * Constructs RegistryURL from the given host, port and bind name.
          */
         RegistryURL(String host, int port, String name) {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/NoSuchObjectException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/NoSuchObjectException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/NoSuchObjectException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/NoSuchObjectException.java
Sat Aug 26 14:06:31 2006
@@ -15,25 +15,11 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public class NoSuchObjectException extends RemoteException {
     private static final long serialVersionUID = 6619395951570472985L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public NoSuchObjectException(String msg) {
         super(msg);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/NotBoundException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/NotBoundException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/NotBoundException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/NotBoundException.java
Sat Aug 26 14:06:31 2006
@@ -15,32 +15,15 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public class NotBoundException extends Exception {
     private static final long serialVersionUID = -1857741824849069317L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public NotBoundException(String msg) {
         super(msg);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public NotBoundException() {
         super();
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RMISecurityException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RMISecurityException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RMISecurityException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RMISecurityException.java
Sat Aug 26 14:06:31 2006
@@ -15,32 +15,19 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
 /**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
+ * @deprecated Use {@link SecurityException} instead.
  */
+@Deprecated
 public class RMISecurityException extends SecurityException {
     private static final long serialVersionUID = -8433406075740433514L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public RMISecurityException(String msg, String arg) {
         super(msg);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public RMISecurityException(String msg) {
         super(msg);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RMISecurityManager.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RMISecurityManager.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RMISecurityManager.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RMISecurityManager.java
Sat Aug 26 14:06:31 2006
@@ -15,24 +15,10 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public class RMISecurityManager extends SecurityManager {
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public RMISecurityManager() {
         super();
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/Remote.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/Remote.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/Remote.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/Remote.java
Sat Aug 26 14:06:31 2006
@@ -15,18 +15,7 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public interface Remote {
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RemoteException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RemoteException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RemoteException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/RemoteException.java
Sat Aug 26 14:06:31 2006
@@ -15,67 +15,40 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.7.4.1 $
- */
 package java.rmi;
 
 import java.io.IOException;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.7.4.1 $
- */
 public class RemoteException extends IOException {
     private static final long serialVersionUID = -5148567311918794206L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public Throwable detail;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public RemoteException(String msg, Throwable cause) {
         super(msg);
         detail = cause;
+        // prevent subsequent initCause calls
         initCause(null);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public RemoteException(String msg) {
         this(msg, null);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public RemoteException() {
-        initCause(null);
+        this(null, null);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
+    @Override
     public Throwable getCause() {
         return detail;
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
+    @Override
     public String getMessage() {
         if (detail == null) {
             return super.getMessage();
-        } else {
-            return super.getMessage() + "; nested exception is:\n\t" + detail;
         }
+        return super.getMessage() + "; nested exception is:\n\t" + detail;
     }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerError.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerError.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerError.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerError.java
Sat Aug 26 14:06:31 2006
@@ -15,25 +15,11 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.5.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.5.4.1 $
- */
 public class ServerError extends RemoteException {
     private static final long serialVersionUID = 8455284893909696482L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public ServerError(String msg, Error cause) {
         super(msg, cause);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerException.java
Sat Aug 26 14:06:31 2006
@@ -15,32 +15,15 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.5.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.5.4.1 $
- */
 public class ServerException extends RemoteException {
     private static final long serialVersionUID = -4775845313121906682L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public ServerException(String msg, Exception cause) {
         super(msg, cause);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public ServerException(String msg) {
         super(msg);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerRuntimeException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerRuntimeException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerRuntimeException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/ServerRuntimeException.java
Sat Aug 26 14:06:31 2006
@@ -15,25 +15,15 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
 /**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
+ * @deprecated No replacement.
  */
+@Deprecated
 public class ServerRuntimeException extends RemoteException {
     private static final long serialVersionUID = 7054464920481467219L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public ServerRuntimeException(String msg, Exception cause) {
         super(msg, cause);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/StubNotFoundException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/StubNotFoundException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/StubNotFoundException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/StubNotFoundException.java
Sat Aug 26 14:06:31 2006
@@ -15,32 +15,15 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public class StubNotFoundException extends RemoteException {
     private static final long serialVersionUID = -7088199405468872373L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public StubNotFoundException(String msg, Exception cause) {
         super(msg, cause);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public StubNotFoundException(String msg) {
         super(msg);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnexpectedException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnexpectedException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnexpectedException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnexpectedException.java
Sat Aug 26 14:06:31 2006
@@ -15,32 +15,15 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public class UnexpectedException extends RemoteException {
     private static final long serialVersionUID = 1800467484195073863L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public UnexpectedException(String msg, Exception cause) {
         super(msg, cause);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public UnexpectedException(String msg) {
         super(msg);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnknownHostException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnknownHostException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnknownHostException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnknownHostException.java
Sat Aug 26 14:06:31 2006
@@ -15,32 +15,15 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public class UnknownHostException extends RemoteException {
     private static final long serialVersionUID = -8152710247442114228L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public UnknownHostException(String msg, Exception cause) {
         super(msg, cause);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public UnknownHostException(String msg) {
         super(msg);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnmarshalException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnmarshalException.java?rev=437228&r1=437227&r2=437228&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnmarshalException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/java/rmi/UnmarshalException.java
Sat Aug 26 14:06:31 2006
@@ -15,32 +15,15 @@
  * limitations under the License.
  */
 
-/**
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 package java.rmi;
 
-
-/**
- * @com.intel.drl.spec_ref
- *
- * @author  Mikhail A. Markov
- * @version $Revision: 1.4.4.1 $
- */
 public class UnmarshalException extends RemoteException {
     private static final long serialVersionUID = 594380845140740218L;
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public UnmarshalException(String msg, Exception cause) {
         super(msg, cause);
     }
 
-    /**
-     * @com.intel.drl.spec_ref
-     */
     public UnmarshalException(String msg) {
         super(msg);
     }



Mime
View raw message