RFR: JDK-8025636 Hide lambda proxy frames in stacktraces
forax at univ-mlv.fr
Tue Feb 17 23:54:15 UTC 2015
On 02/17/2015 07:54 AM, John Rose wrote:
> On Feb 16, 2015, at 10:33 PM, Staffan Larsen <staffan.larsen at oracle.com> wrote:
>> The first shot at fixing this bug was to filter out ACC_SYNTHETIC. The drawback was that the actual lambda method are marked ACC_SYNTHETIC, so that filtered too much.
> OTOH it seems odd to filter out the actual interface method.
> Ideally the back trace should show the name of the interface method and the implementation code of the lambda.
> This information is divided between the two frames in question.
The compiler can be changed to append the name of the interface method
when generating the static method corresponding to the lambda but
usually the name of the abstract method is not a useful information
because a functional interface is more a function type than a real
More information about the compiler-dev