The test case is in the attachment section
I test it in
java version "1.8.0_76-ea"
Java(TM) SE Runtime Environment (build 1.8.0_76-ea-b04)
Java HotSpot(TM) 64-Bit Server VM (build 25.76-b04, mixed mode)
java -classpath bin -Dsubprocess.classpath=C:/space/jvm.28/misc/bin jazz103.pr109401.UninterruptableLock
The output:
Starting process: java -classpath C:\\Joshua\\task\\PR109401\\eclipse_ws\\test\\bin jazz103.pr109401.UninterruptableLock C:\Users\IBM_AD~1\AppData\Local\Temp\lock-5087312412291950334.tmp
helper process: lock hold time expired
[Thread-0] I/O error: (java.nio.channels.FileLockInterruptionException) null
Interrupt took too long (28.305 seconds).
Waited too long (28.316 seconds).
Done.
"Interrupt took too long (28.305 seconds) " is in the output , because the lock() was not interruptted