Hello,

Please review these changes to address

    JDK-8066632: Suppress deprecation warnings in java.rmi module
    http://cr.openjdk.java.net/~darcy/8066632.0/

Patch inlined below.

Thanks,

-Joe

--- old/src/java.rmi/share/classes/java/rmi/server/RemoteObject.java 2014-12-04 14:43:37.806086378 -0800 +++ new/src/java.rmi/share/classes/java/rmi/server/RemoteObject.java 2014-12-04 14:43:37.630086370 -0800
@@ -94,6 +94,7 @@
      * remote object could not be found.
      * @since 1.2
      */
+    @SuppressWarnings("deprecation")
     public static Remote toStub(Remote obj) throws NoSuchObjectException {
         if (obj instanceof RemoteStub ||
             (obj != null &&
--- old/src/java.rmi/share/classes/sun/rmi/registry/RegistryImpl.java 2014-12-04 14:43:38.382086405 -0800 +++ new/src/java.rmi/share/classes/sun/rmi/registry/RegistryImpl.java 2014-12-04 14:43:38.150086394 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -336,6 +336,7 @@
      * Main program to start a registry. <br>
      * The port number can be specified on the command line.
      */
+    @SuppressWarnings("deprecation")
     public static void main(String args[])
     {
         // Create and install the security manager if one is not installed
--- old/src/java.rmi/share/classes/sun/rmi/server/MarshalOutputStream.java 2014-12-04 14:43:38.974086433 -0800 +++ new/src/java.rmi/share/classes/sun/rmi/server/MarshalOutputStream.java 2014-12-04 14:43:38.762086423 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -76,6 +76,7 @@
      * Checks for objects that are instances of java.rmi.Remote
      * that need to be serialized as proxy objects.
      */
+    @SuppressWarnings("deprecation")
     protected final Object replaceObject(Object obj) throws IOException {
         if ((obj instanceof Remote) && !(obj instanceof RemoteStub)) {
             Target target = ObjectTable.getTarget((Remote) obj);
--- old/src/java.rmi/share/classes/sun/rmi/transport/proxy/HttpInputStream.java 2014-12-04 14:43:39.498086458 -0800 +++ new/src/java.rmi/share/classes/sun/rmi/transport/proxy/HttpInputStream.java 2014-12-04 14:43:39.290086448 -0800
@@ -45,6 +45,7 @@
      * Create new filter on a given input stream.
      * @param in the InputStream to filter from
      */
+    @SuppressWarnings("deprecation")
     public HttpInputStream(InputStream in) throws IOException
     {
         super(in);

Reply via email to