JDK 9 RFR of JDK-8066641: Suppress deprecation warnings in jdk.naming module

joe darcy joe.darcy at oracle.com
Fri Dec 5 02:23:12 UTC 2014


Hello,

Please review the small fix below for

     JDK-8066641: Suppress deprecation warnings in jdk.naming module

Thanks,

-Joe

diff -r ab3ff449ba9a 
src/jdk.naming.rmi/share/classes/com/sun/jndi/rmi/registry/RegistryContext.java
--- 
a/src/jdk.naming.rmi/share/classes/com/sun/jndi/rmi/registry/RegistryContext.java 
Thu Dec 04 15:04:11 2014 -0800
+++ 
b/src/jdk.naming.rmi/share/classes/com/sun/jndi/rmi/registry/RegistryContext.java 
Thu Dec 04 18:22:35 2014 -0800
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights 
reserved.
+ * Copyright (c) 1999, 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
@@ -353,6 +353,7 @@
      /**
       * Wrap a RemoteException inside a NamingException.
       */
+    @SuppressWarnings("deprecation")
      public static NamingException wrapRemoteException(RemoteException 
re) {

          NamingException ne;
@@ -413,6 +414,7 @@
       * Attempts to install a security manager if none is currently in
       * place.
       */
+    @SuppressWarnings("deprecation")
      private static void installSecurityMgr() {

          try {




More information about the core-libs-dev mailing list