< prev index next >

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

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