< prev index next >

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

Print this page
@@ -82,11 +82,13 @@
          ThreadGroup top = Thread.currentThread().getThreadGroup();
          ThreadGroup parent = null;
          while ((parent = top.getParent()) != null) {
              top = parent;
          }
-         mainGroupForJDI = new ThreadGroup(top, "JDI main");
+         @SuppressWarnings("deprecation")
+         ThreadGroup group = new ThreadGroup(top, "JDI main");
+         mainGroupForJDI = group;
  
          /*
           * Load the connectors
           */
          ServiceLoader<Connector> connectorLoader =
< prev index next >