Index: main/java/java/rmi/server/LogStream.java =================================================================== --- main/java/java/rmi/server/LogStream.java (revision 437083) +++ main/java/java/rmi/server/LogStream.java (working copy) @@ -33,22 +33,27 @@ * * @author Mikhail A. Markov * @version $Revision: 1.3.4.2 $ + * @deprecated No replacement. This class is deprecated since Java v1.2. */ +@Deprecated public class LogStream extends PrintStream { /** * @com.intel.drl.spec_ref */ + @Deprecated public static final int SILENT = 0; /** * @com.intel.drl.spec_ref */ + @Deprecated public static final int BRIEF = 10; /** * @com.intel.drl.spec_ref */ + @Deprecated public static final int VERBOSE = 20; // The default print stream. @@ -78,6 +83,7 @@ /** * @com.intel.drl.spec_ref */ + @Deprecated public String toString() { return "LogStream[" + name + "]"; } @@ -85,6 +91,7 @@ /** * @com.intel.drl.spec_ref */ + @Deprecated public void write(byte[] b, int off, int len) { for (int i = 0; i < len; ++i) { write(b[off + i]); @@ -94,6 +101,7 @@ /** * @com.intel.drl.spec_ref */ + @Deprecated public void write(int b) { synchronized (this) { if (b == '\n') { @@ -112,6 +120,7 @@ /** * @com.intel.drl.spec_ref */ + @Deprecated public synchronized void setOutputStream(OutputStream out) { this.out = out; } @@ -119,6 +128,7 @@ /** * @com.intel.drl.spec_ref */ + @Deprecated public synchronized OutputStream getOutputStream() { return out; } @@ -126,6 +136,7 @@ /** * @com.intel.drl.spec_ref */ + @Deprecated public static int parseLevel(String levelStr) { if (levelStr == null) { return -1; @@ -150,6 +161,7 @@ /** * @com.intel.drl.spec_ref */ + @Deprecated public static synchronized void setDefaultStream(PrintStream stream) { defaultStream = stream; } @@ -157,6 +169,7 @@ /** * @com.intel.drl.spec_ref */ + @Deprecated public static synchronized PrintStream getDefaultStream() { return defaultStream; } @@ -164,6 +177,7 @@ /** * @com.intel.drl.spec_ref */ + @Deprecated public static LogStream log(String name) { synchronized (logStreams) { LogStream stream = (LogStream) logStreams.get(name); Index: main/java/java/rmi/server/Operation.java =================================================================== --- main/java/java/rmi/server/Operation.java (revision 437083) +++ main/java/java/rmi/server/Operation.java (working copy) @@ -27,7 +27,10 @@ * * @author Mikhail A. Markov * @version $Revision: 1.4.4.2 $ + * @deprecated This class was used by the previous versions of the RMI + * framework. It is not required since Java v1.2. */ +@Deprecated public class Operation { private String op; @@ -35,6 +38,7 @@ /** * @com.intel.drl.spec_ref */ + @Deprecated public Operation(String op) { this.op = op; } @@ -42,6 +46,7 @@ /** * @com.intel.drl.spec_ref */ + @Deprecated public String toString() { return op; } @@ -49,6 +54,7 @@ /** * @com.intel.drl.spec_ref */ + @Deprecated public String getOperation() { return op; } Index: main/java/java/rmi/server/RemoteCall.java =================================================================== --- main/java/java/rmi/server/RemoteCall.java (revision 437083) +++ main/java/java/rmi/server/RemoteCall.java (working copy) @@ -32,42 +32,53 @@ * * @author Mikhail A. Markov * @version $Revision: 1.3.4.1 $ + * @deprecated This interface is no longer required by RMI framework since v1.2. + * It is only used by the deprecated methods of + * {@link java.rmi.server.RemoteRef} class. */ +@Deprecated public interface RemoteCall { /** * @com.intel.drl.spec_ref */ + @Deprecated public void done() throws IOException; /** * @com.intel.drl.spec_ref */ + @Deprecated public void executeCall() throws Exception; /** * @com.intel.drl.spec_ref */ + @Deprecated public ObjectOutput getResultStream(boolean success) throws IOException, StreamCorruptedException; /** * @com.intel.drl.spec_ref */ + @Deprecated public void releaseInputStream() throws IOException; /** * @com.intel.drl.spec_ref */ + @Deprecated public ObjectInput getInputStream() throws IOException; /** * @com.intel.drl.spec_ref */ + @Deprecated public void releaseOutputStream() throws IOException; /** * @com.intel.drl.spec_ref */ + @Deprecated public ObjectOutput getOutputStream() throws IOException; } Index: main/java/java/rmi/server/RemoteRef.java =================================================================== --- main/java/java/rmi/server/RemoteRef.java (revision 437083) +++ main/java/java/rmi/server/RemoteRef.java (working copy) @@ -53,7 +53,11 @@ /** * @com.intel.drl.spec_ref + * @deprecated The newCall() -> invoke() -> done() method invocation + * triplet is replaced by the single invocation of the + * invoke(Remote, Method, Object[], long) method in RMI v1.2. */ + @Deprecated public RemoteCall newCall(RemoteObject obj, Operation[] op, int a1, @@ -72,12 +76,20 @@ /** * @com.intel.drl.spec_ref + * @deprecated The newCall() -> invoke() -> done() method invocation + * triplet is replaced by the single invocation of the + * invoke(Remote, Method, Object[], long) method in RMI v1.2. */ + @Deprecated public void invoke(RemoteCall call) throws Exception; /** * @com.intel.drl.spec_ref + * @deprecated The newCall() -> invoke() -> done() method invocation + * triplet is replaced by the single invocation of the + * invoke(Remote, Method, Object[], long) method in RMI v1.2. */ + @Deprecated public void done(RemoteCall call) throws RemoteException; /** Index: main/java/java/rmi/server/RemoteStub.java =================================================================== --- main/java/java/rmi/server/RemoteStub.java (revision 437083) +++ main/java/java/rmi/server/RemoteStub.java (working copy) @@ -48,7 +48,10 @@ /** * @com.intel.drl.spec_ref + * @deprecated This method is depreacted since Java v1.2. The constructor + * {@link #RemoteStub(java.rmi.server.RemoteRef)} should be used instead. */ + @Deprecated protected static void setRef(RemoteStub stub, RemoteRef ref) { stub.ref = ref; }