diff options
author | Michael Koch <konqueror@gmx.de> | 2003-03-31 06:49:33 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-03-31 06:49:33 +0000 |
commit | a1bda993d584945232d2764dcfa4fc7f7b496b09 (patch) | |
tree | e8bf217ee4b393b69c6f0694fc642d84eb005f2a /libjava/java/rmi | |
parent | 60c98fd6115a55ff13c492d2b022925bc3f80111 (diff) | |
download | gcc-a1bda993d584945232d2764dcfa4fc7f7b496b09.zip gcc-a1bda993d584945232d2764dcfa4fc7f7b496b09.tar.gz gcc-a1bda993d584945232d2764dcfa4fc7f7b496b09.tar.bz2 |
2003-03-31 Michael Koch <konqueror@gmx.de>
* java/rmi/server/LoaderHandler.java
(loadClass): Deprecated.
(getSecurityContext): Deprecated.
* java/rmi/server/LogStream.java
(getDefaultStream): Deprecated.
(setDefaultStream): Deprecated.
(getOutputStream): Deprecated.
(setOutputStream): Deprecated.
(write): Deprecated.
(toString): Deprecated.
(parseLevel): Deprecated.
* java/rmi/server/Operation.java
(Operation): Deprecated.
(getOperation): Deprecated.
(toString): Deprecated.
* java/rmi/server/RemoteCall.java
(getOutputStream): Deprecated.
(releaseOutputStream): Deprecated.
(getInputStream): Deprecated.
(releaseInputStream): Deprecated.
(getResultStream): Deprecated.
(executeCall): Deprecated.
(done): Deprecated.
* java/rmi/server/RemoteRef.java
(invoke): Deprecated.
(newCall): Deprecated.
(done): Deprecated.
* java/rmi/server/RemoteStub.java
(setRef): Deprecated.
* java/rmi/server/Skeleton.java:
No need to import java.lang.Exception explicitly.
(dispatch): Deprecated.
(getOperations): Deprecated.
From-SVN: r65079
Diffstat (limited to 'libjava/java/rmi')
-rw-r--r-- | libjava/java/rmi/server/LoaderHandler.java | 9 | ||||
-rw-r--r-- | libjava/java/rmi/server/LogStream.java | 24 | ||||
-rw-r--r-- | libjava/java/rmi/server/Operation.java | 9 | ||||
-rw-r--r-- | libjava/java/rmi/server/RemoteCall.java | 21 | ||||
-rw-r--r-- | libjava/java/rmi/server/RemoteRef.java | 9 | ||||
-rw-r--r-- | libjava/java/rmi/server/RemoteStub.java | 3 | ||||
-rw-r--r-- | libjava/java/rmi/server/Skeleton.java | 7 |
7 files changed, 81 insertions, 1 deletions
diff --git a/libjava/java/rmi/server/LoaderHandler.java b/libjava/java/rmi/server/LoaderHandler.java index f600306..872585d 100644 --- a/libjava/java/rmi/server/LoaderHandler.java +++ b/libjava/java/rmi/server/LoaderHandler.java @@ -47,11 +47,20 @@ public interface LoaderHandler { public static final String packagePrefix = ""; + /** + * @deprecated + */ public Class loadClass(String name) throws MalformedURLException, ClassNotFoundException; + /** + * @deprecated + */ public Class loadClass(URL codebase, String name) throws MalformedURLException, ClassNotFoundException; + /** + * @deprecated + */ public Object getSecurityContext(ClassLoader loader); } diff --git a/libjava/java/rmi/server/LogStream.java b/libjava/java/rmi/server/LogStream.java index 2f4fe76..5bf0689 100644 --- a/libjava/java/rmi/server/LogStream.java +++ b/libjava/java/rmi/server/LogStream.java @@ -65,41 +65,65 @@ public class LogStream extends PrintStream throw new Error ("Not implemented"); } + /** + * @deprecated + */ public static PrintStream getDefaultStream () { return defStream; } + /** + * @deprecated + */ public static void setDefaultStream (PrintStream s) { defStream = s; } + /** + * @deprecated + */ public OutputStream getOutputStream () { return out; } + /** + * @deprecated + */ public void setOutputStream (OutputStream s) { out = s; } + /** + * @deprecated + */ public void write (int buffer) { super.write (buffer); } + /** + * @deprecated + */ public void write (byte[] buffer, int offset, int len) { super.write (buffer, offset, len); } + /** + * @deprecated + */ public String toString () { throw new Error ("Not implemented"); } + /** + * @deprecated + */ public static int parseLevel (String s) { if (s.equalsIgnoreCase ("silent")) diff --git a/libjava/java/rmi/server/Operation.java b/libjava/java/rmi/server/Operation.java index 6fd408c..477446c 100644 --- a/libjava/java/rmi/server/Operation.java +++ b/libjava/java/rmi/server/Operation.java @@ -44,16 +44,25 @@ public class Operation { private String operation; + /** + * @deprecated + */ public Operation (String op) { operation = op; } + /** + * @deprecated + */ public String getOperation () { return operation; } + /** + * @deprecated + */ public String toString () { return operation; diff --git a/libjava/java/rmi/server/RemoteCall.java b/libjava/java/rmi/server/RemoteCall.java index 7621152..bccbaf1 100644 --- a/libjava/java/rmi/server/RemoteCall.java +++ b/libjava/java/rmi/server/RemoteCall.java @@ -48,18 +48,39 @@ import java.io.StreamCorruptedException; */ public interface RemoteCall { + /** + * @deprecated + */ public ObjectOutput getOutputStream () throws IOException; + /** + * @deprecated + */ public void releaseOutputStream () throws IOException; + /** + * @deprecated + */ public ObjectInput getInputStream () throws IOException; + /** + * @deprecated + */ public void releaseInputStream () throws IOException; + /** + * @deprecated + */ public ObjectOutput getResultStream (boolean success) throws IOException, StreamCorruptedException; + /** + * @deprecated + */ public void executeCall () throws Exception; + /** + * @deprecated + */ public void done () throws IOException; } diff --git a/libjava/java/rmi/server/RemoteRef.java b/libjava/java/rmi/server/RemoteRef.java index d9f9232..c9abfd6 100644 --- a/libjava/java/rmi/server/RemoteRef.java +++ b/libjava/java/rmi/server/RemoteRef.java @@ -49,15 +49,24 @@ public interface RemoteRef extends Externalizable public static final String packagePrefix = "gnu.java.rmi.server"; + /** + * @deprecated + */ public void invoke(RemoteCall call) throws Exception; public Object invoke (Remote obj, Method method, Object[] params, long opnum) throws Exception; + /** + * @deprecated + */ public RemoteCall newCall (RemoteObject obj, Operation[] op, int opnum, long hash) throws RemoteException; + /** + * @deprecated + */ public void done (RemoteCall call) throws RemoteException; public boolean remoteEquals (RemoteRef ref); diff --git a/libjava/java/rmi/server/RemoteStub.java b/libjava/java/rmi/server/RemoteStub.java index cc6b589..07b61d6 100644 --- a/libjava/java/rmi/server/RemoteStub.java +++ b/libjava/java/rmi/server/RemoteStub.java @@ -51,6 +51,9 @@ public abstract class RemoteStub extends RemoteObject super (ref); } + /** + * @deprecated + */ protected static void setRef (RemoteStub stub, RemoteRef ref) { stub.ref = ref; diff --git a/libjava/java/rmi/server/Skeleton.java b/libjava/java/rmi/server/Skeleton.java index a341894..7516394 100644 --- a/libjava/java/rmi/server/Skeleton.java +++ b/libjava/java/rmi/server/Skeleton.java @@ -38,7 +38,6 @@ exception statement from your version. */ package java.rmi.server; import java.rmi.Remote; -import java.lang.Exception; import java.rmi.server.RemoteCall; /** @@ -46,8 +45,14 @@ import java.rmi.server.RemoteCall; */ public interface Skeleton { + /** + * @deprecated + */ public void dispatch (Remote obj, RemoteCall theCall, int opnum, long hash) throws Exception; + /** + * @deprecated + */ public Operation[] getOperations(); } |