News for hackers. Stuff that matters.
Re:JVM exceptions are weird: a decompiler perspective by xxs on Monday November 10, 2025 @07:44AM (#45875401)
try/finally is effectively try/catch(Throwable) with copy all the code of the finally block prior to exiting the method. (Java doesn't have a direct bytecode support for 'finally')

Nothing that cursed.

It compiles to this:

  void foo() {
    for (;;) {
      try {
        continue;
        return; } 
      catch (Throwable t) { continue; }
    }
  }
Re:JVM exceptions are weird: a decompiler perspective by X0Refraction on Monday November 10, 2025 @08:46AM (#45875965)
Won't that particular code fail to compile in java because the return is unreachable?