[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-compiler-dev
Subject:    Re: Strange translation of finally blocks
From:       Jan Lahoda <jan.lahoda () oracle ! com>
Date:       2014-09-22 10:24:38
Message-ID: 541FF8E6.9080704 () oracle ! com
[Download RAW message or body]

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
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic