I have code such as below:
@Override
    protected Void doInBackground() throws Exception {
        try {
            while(true) cpu.step();
        } catch(Throwable t) {
            throw new RuntimeException(t);
        } finally {
            System.out.println("EmulationWorked task completed");
        }
    }
This loop should always exit by throwing an exception, but in my case I see that the control reaches the println statement without doing so. 
My Java/JVM version is as below:
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
This question is related to an issue I was seeing as part of another issue I posted previously: Gameboy emulation - SwingWorker stuck at Unsafe.park
Is this a known JVM bug of some kind?
 
    