< prev index next >

src/jdk.jshell/share/classes/jdk/jshell/execution/LocalExecutionControl.java

Print this page
*** 57,11 ***
      public LocalExecutionControl() {
      }
  
      @Override
      protected String invoke(Method doitMethod) throws Exception {
!         execThreadGroup = new ThreadGroup("JShell process local execution");
  
          AtomicReference<InvocationTargetException> iteEx = new AtomicReference<>();
          AtomicReference<IllegalAccessException> iaeEx = new AtomicReference<>();
          AtomicReference<NoSuchMethodException> nmeEx = new AtomicReference<>();
          AtomicReference<Boolean> stopped = new AtomicReference<>(false);
--- 57,13 ---
      public LocalExecutionControl() {
      }
  
      @Override
      protected String invoke(Method doitMethod) throws Exception {
!         @SuppressWarnings("deprecation")
+         ThreadGroup group = new ThreadGroup("JShell process local execution");
+         execThreadGroup = group;
  
          AtomicReference<InvocationTargetException> iteEx = new AtomicReference<>();
          AtomicReference<IllegalAccessException> iaeEx = new AtomicReference<>();
          AtomicReference<NoSuchMethodException> nmeEx = new AtomicReference<>();
          AtomicReference<Boolean> stopped = new AtomicReference<>(false);
< prev index next >