diff --git a/make/CompileJavaModules.gmk b/make/CompileJavaModules.gmk index 20a58f81f1c..9332649cca4 100644 --- a/make/CompileJavaModules.gmk +++ b/make/CompileJavaModules.gmk @@ -351,11 +351,6 @@ jdk.scripting.nashorn.shell_COPY += .js .properties ################################################################################ -jdk.rmic_DISABLED_WARNINGS += deprecation -jdk.rmic_CLEAN += .properties - -################################################################################ - # No SCTP implementation on Mac OS X or AIX. These classes should be excluded. SCTP_IMPL_CLASSES = \ $(TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java \ diff --git a/make/common/Modules.gmk b/make/common/Modules.gmk index ee225d99e8c..05e2238f1ab 100644 --- a/make/common/Modules.gmk +++ b/make/common/Modules.gmk @@ -172,7 +172,6 @@ DOCS_MODULES += \ jdk.naming.rmi \ jdk.net \ jdk.nio.mapmode \ - jdk.rmic \ jdk.scripting.nashorn \ jdk.sctp \ jdk.security.auth \ diff --git a/make/launcher/Launcher-jdk.rmic.gmk b/make/launcher/Launcher-jdk.rmic.gmk deleted file mode 100644 index d60c3d9b60b..00000000000 --- a/make/launcher/Launcher-jdk.rmic.gmk +++ /dev/null @@ -1,31 +0,0 @@ -# -# Copyright (c) 2011, 2015, 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 -# under the terms of the GNU General Public License version 2 only, as -# published by the Free Software Foundation. Oracle designates this -# particular file as subject to the "Classpath" exception as provided -# by Oracle in the LICENSE file that accompanied this code. -# -# This code is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -# version 2 for more details (a copy is included in the LICENSE file that -# accompanied this code). -# -# You should have received a copy of the GNU General Public License version -# 2 along with this work; if not, write to the Free Software Foundation, -# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA -# or visit www.oracle.com if you need additional information or have any -# questions. -# - -include LauncherCommon.gmk - -$(eval $(call SetupBuildLauncher, rmic, \ - MAIN_CLASS := sun.rmi.rmic.Main, \ - CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS, \ -)) diff --git a/make/nashorn/element-list b/make/nashorn/element-list index 4405748b41e..db8915cd08e 100644 --- a/make/nashorn/element-list +++ b/make/nashorn/element-list @@ -260,7 +260,6 @@ module:jdk.naming.rmi module:jdk.net jdk.net jdk.nio -module:jdk.rmic module:jdk.scripting.nashorn jdk.nashorn.api.scripting jdk.nashorn.api.tree diff --git a/src/java.rmi/share/classes/java/rmi/server/Operation.java b/src/java.rmi/share/classes/java/rmi/server/Operation.java index 4a6377d749d..76817eabf00 100644 --- a/src/java.rmi/share/classes/java/rmi/server/Operation.java +++ b/src/java.rmi/share/classes/java/rmi/server/Operation.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2020, 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 @@ -29,8 +29,7 @@ package java.rmi.server; * An Operation contains a description of a Java method. * Operation objects were used in JDK1.1 version stubs and * skeletons. The Operation class is not needed for 1.2 style - * stubs (stubs generated with rmic -v1.2); hence, this class - * is deprecated. + * stubs; hence, this class is deprecated. * * @since 1.1 * @deprecated no replacement diff --git a/src/java.rmi/share/classes/java/rmi/server/Skeleton.java b/src/java.rmi/share/classes/java/rmi/server/Skeleton.java index b4a2ac449c9..9f2daafb864 100644 --- a/src/java.rmi/share/classes/java/rmi/server/Skeleton.java +++ b/src/java.rmi/share/classes/java/rmi/server/Skeleton.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2020, 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 @@ -30,11 +30,9 @@ import java.rmi.Remote; * The Skeleton interface is used solely by the RMI * implementation. * - *

Every version 1.1 (and version 1.1 compatible skeletons generated in - * 1.2 using rmic -vcompat) skeleton class generated by the rmic - * stub compiler implements this interface. A skeleton for a remote object is - * a server-side entity that dispatches calls to the actual remote object - * implementation. + *

Every version 1.1 compatible skeleton implements this interface. + * A skeleton for a remote object is a server-side entity that dispatches calls + * to the actual remote object implementation. * * @author Ann Wollrath * @since 1.1 diff --git a/src/java.rmi/share/classes/java/rmi/server/SkeletonMismatchException.java b/src/java.rmi/share/classes/java/rmi/server/SkeletonMismatchException.java index 901c27d3a37..e532034b351 100644 --- a/src/java.rmi/share/classes/java/rmi/server/SkeletonMismatchException.java +++ b/src/java.rmi/share/classes/java/rmi/server/SkeletonMismatchException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2020, 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 @@ -33,7 +33,7 @@ import java.rmi.RemoteException; * remote method names or signatures in this interface have changed or * that the stub class used to make the call and the skeleton * receiving the call were not generated by the same version of - * the stub compiler (rmic). + * the stub protocol. * * @author Roger Riggs * @since 1.1 diff --git a/src/java.rmi/share/classes/java/rmi/server/UnicastRemoteObject.java b/src/java.rmi/share/classes/java/rmi/server/UnicastRemoteObject.java index 3f982c02e0d..8ec91fdb251 100644 --- a/src/java.rmi/share/classes/java/rmi/server/UnicastRemoteObject.java +++ b/src/java.rmi/share/classes/java/rmi/server/UnicastRemoteObject.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2020, 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 @@ -32,17 +32,14 @@ import sun.rmi.transport.LiveRef; /** * Used for exporting a remote object with JRMP and obtaining a stub - * that communicates to the remote object. Stubs are either generated - * at runtime using dynamic proxy objects, or they are generated statically - * at build time, typically using the {@code rmic} tool. + * that communicates to the remote object. Stubs are generated + * at runtime using dynamic proxy objects. * *

Deprecated: Static Stubs. Support for statically * generated stubs is deprecated. This includes the API in this class that * requires the use of static stubs, as well as the runtime support for * loading static stubs. Generating stubs dynamically is preferred, using one - * of the non-deprecated ways of exporting objects as listed below. Do - * not run {@code rmic} to generate static stub classes. It is unnecessary, and - * it is also deprecated. + * of the non-deprecated ways of exporting objects as listed below. * *

There are eight ways to export remote objects: * @@ -90,10 +87,8 @@ import sun.rmi.transport.LiveRef; *

The default value of the * {@code java.rmi.server.ignoreStubClasses} property is {@code false}. * - *

Statically generated stubs are typically pregenerated from the - * remote object's class using the {@code rmic} tool. A static stub is - * loaded and an instance of that stub class is constructed as described - * below. + *

Statically generated stubs are typically pregenerated from the remote object's class. + * A static stub is loaded and an instance of that stub class is constructed as described below. * *