// create a thread
InterruptThread3 thread = new InterruptThread3();
thread.start();
thread.interrupt();
// check current thread ---- main
Assert.assertTrue("当前线程在中断的状态下", !Thread.interrupted());
// check transfer thread ---- main ---- thread-A
** Assert.assertTrue("指定的线程不在中断的状态下", thread.isInterrupted());**
// interrupt current thread ---- main
Thread.currentThread().interrupt();
Assert.assertTrue("当前线程不在中断的状态下", Thread.interrupted()); // resetting
Assert.assertTrue("当前线程在中断的状态下", !Thread.interrupted());
为什么被星号引住那行过不去?