LVT issue related to JDK-8047719

Vicente-Arturo Romero-Zaldivar vicente.romero at oracle.com
Wed Nov 26 01:19:59 UTC 2014


The patch for https://bugs.openjdk.java.net/browse/JDK-8064857, still 
under review, should fix this issue too.

Thanks,
Vicente

On 11/25/2014 04:54 PM, Liam Miller-Cushon wrote:
> An LVT entry is no longer emitted for 'foo' in the following code. The 
> behaviour changed after the fix for JDK-8047719 [1]. Is this a bug?
>
> class Test {
>   {
>     String foo = null;
>   }
> }
>
> Before:
>       LocalVariableTable:
>         Start  Length  Slot  Name   Signature
>             6       0     1   foo   Ljava/lang/String;
>             0       7     0  this   LTest;
>
> After:
>       LocalVariableTable:
>         Start  Length  Slot  Name   Signature
>             0       7     0  this   LTest;
>
> [1] http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/855f8c7337eb



More information about the compiler-dev mailing list