< prev index next >
src/jdk.jdi/share/classes/com/sun/tools/jdi/SunCommandLineLauncher.java
Print this page
@@ -62,22 +62,24 @@
/**
* 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();
+ @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 x) {
- } catch (UnsatisfiedLinkError x) {
- } catch (InstantiationException x) {
- } catch (IllegalAccessException x) {
+ } catch (ClassNotFoundException |
+ UnsatisfiedLinkError |
+ InstantiationException |
+ IllegalAccessException x) {
};
if (transportService == null) {
transportService = new SocketTransportService();
transport = new Transport() {
public String name() {
< prev index next >