[jdk17u-dev] Integrated: 8275233: Incorrect line number reported in exception stack trace thrown from a lambda expression

Alexey Pavlyutkin duke at openjdk.org
Tue May 23 15:20:35 UTC 2023


On Wed, 21 Sep 2022 06:15:00 GMT, Alexey Pavlyutkin <duke at openjdk.org> wrote:

> Hi! Here is backport of [JDK-8275233](https://bugs.openjdk.org/browse/JDK-8275233) that fixes incorrect `javac -g` flag processing. The issue was introduced by [JDK-8200301](https://bugs.openjdk.org/browse/JDK-8200301). It prevents proper debug info generation for labmdas, in particular it causes wrong line numbers in stack trace upon throwing an exception from a labmda fucntion.
> 
> The original patch applied cleanly
> 
> Verification (amd64/20.04LTS): test/langtools/tools/javac/lambda/deduplication/DeduplicationDebugInfo.java (new test)
> Regression (amd64/20.04LTS): test/langtools

This pull request has now been integrated.

Changeset: 9cb01207
Author:    Alexey Pavlyutkin <apavlyutkin at azul.com>
Committer: Yuri Nesterenko <yan at openjdk.org>
URL:       https://git.openjdk.org/jdk17u-dev/commit/9cb01207b371e3e0f0af3652b78dd623205b537f
Stats:     52 lines in 6 files changed: 48 ins; 0 del; 4 mod

8275233: Incorrect line number reported in exception stack trace thrown from a lambda expression

Backport-of: d7c283a081c37bfb8bc5934e4b2af16cad512fd2

-------------

PR: https://git.openjdk.org/jdk17u-dev/pull/702


More information about the jdk-updates-dev mailing list