Closed samczsun closed 8 years ago
I'm pretty sure this code should be invalid. It might be a bug in the JVM. I'll have to investigate in more detail later.
I just checked the JVM's verifier code again and it turns out that when merging into an exception handler, it uses the old register state, rather than the new register state like I thought. A pretty subtle mistake. Thanks for catching it.
Code runs fine on 1.8.0_74. May be a bug in the jre but it doesn't feel like it
EDIT: Here's one with stackmapframes (I was testing on major 49)