Java6 と Java7 で挙動が違ったところがありました。 再現コードは単純で…。 public class Test { public static void main(String[] args) { try { main(args); } catch (Error e) { e.printStackTrace(); } } } 無限再帰するだけのコードです。 最終的には StackOverflowError が発生し、スタックトレースが出るはずなんですが…。 (Java7 での実行結果) Exception in thread "main" Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main" なぜか、NoClassDefFoundEr
![Java6 と Java7 の挙動の違い(バグ?) - 地平線に行く](https://cdn-ak-scissors.b.st-hatena.com/image/square/71174f616475a1adbd666d1a27269fe66a935086/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fc%2Fchiheisen%2F20120604%2F20120604015447.png)