Strange translation of finally blocks
Jan Lahoda
jan.lahoda at oracle.com
Mon Sep 22 10:24:38 UTC 2014
Hi Martin,
On 21.9.2014 23:39, Martin Schaef wrote:
> Hi there,
> I’m working on a static analysis tool for bytecode and I have this issue where the compiler generates strange code with looping catch blocks which kills my tool.
> I attached an example Java file and the bytecode. If you look at the exception table, there is a line:
> 79 81 79 any
What version of JDK do you use? It appears this may be already resolved
(by Maurizio) in JDK 8:
https://bugs.openjdk.java.net/browse/JDK-7093325
Thanks,
Jan
> which gives me some headache.
> Is this correct? If so, what does it mean?
>
> I found a similar problem with try-with-resources earlier and reported it on stackoverflow:
> http://stackoverflow.com/questions/25615417/try-with-resources-introduce-unreachable-bytecode
>
> Best,
> Martin
>
More information about the compiler-dev
mailing list