RFR - JDK-8218650: LineNumberTable records for method invocations with arguments

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Feb 21 17:02:51 UTC 2019


On 21/02/2019 16:49, Maurizio Cimadamore wrote:
>
> I guess what I'm arguing is not that we should add LNT - but that I 
> see no solid basis for doing this for methods, but not for field 
> access. If 8218628 will cure us from all sins :-) then the same 
> argument surely could be applied to method access?
>
Where I'm truly going with this is - we never really collected a list of 
use cases as to when it would be nice to have a LNT generated; there are 
many use cases out there, from debuggers to static analysis tools (code 
coverage, findbugs...) and each of these might be affected in subtle 
ways. Heck, once we've even stumbled upon a bug where missing LNT entry 
was causing the JRockit VM to crash ;-)

So, I think that, stepping back from this specific issue, we should try 
(with the help of the community :-)) to identify the conditions under 
which it would be desirable to have a LNT entry, and come up with some 
sort of informal javac spec for that.

Maurizio




More information about the compiler-dev mailing list