< prev index next >

src/jdk.jdi/share/classes/com/sun/tools/jdi/ProcessAttachingConnector.java

Print this page

        

@@ -126,11 +126,13 @@
             ts = new SocketTransportService();
         } else {
             if (lib.equals("dt_shmem")) {
                 try {
                     Class<?> c = Class.forName("com.sun.tools.jdi.SharedMemoryTransportService");
-                    ts = (TransportService)c.newInstance();
+                    @SuppressWarnings("deprecation")
+                    Object tmp = c.newInstance();
+                    ts = (TransportService)tmp;
                 } catch (Exception x) { }
             }
         }
         if (ts == null) {
             throw new IOException("Transport " + lib + " not recognized");
< prev index next >