< prev index next >

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

Print this page

        

*** 62,83 **** /** * By default this connector uses either the shared memory * transport or the socket transport */ try { ! Class<?> c = Class.forName("com.sun.tools.jdi.SharedMemoryTransportService"); ! transportService = (TransportService)c.newInstance(); transport = new Transport() { public String name() { return "dt_shmem"; } }; usingSharedMemory = true; ! } catch (ClassNotFoundException x) { ! } catch (UnsatisfiedLinkError x) { ! } catch (InstantiationException x) { ! } catch (IllegalAccessException x) { }; if (transportService == null) { transportService = new SocketTransportService(); transport = new Transport() { public String name() { --- 62,85 ---- /** * By default this connector uses either the shared memory * transport or the socket transport */ try { ! @SuppressWarnings("deprecation") ! Object o = ! Class.forName("com.sun.tools.jdi.SharedMemoryTransportService").newInstance(); ! transportService = (TransportService)o; transport = new Transport() { public String name() { return "dt_shmem"; } }; usingSharedMemory = true; ! } catch (ClassNotFoundException | ! UnsatisfiedLinkError | ! InstantiationException | ! IllegalAccessException x) { }; if (transportService == null) { transportService = new SocketTransportService(); transport = new Transport() { public String name() {
< prev index next >