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

Alexey Pavlyutkin duke at openjdk.org
Fri May 26 07:10:15 UTC 2023


On Thu, 25 May 2023 15:17:20 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: 682728ef
Author:    Alexey Pavlyutkin <apavlyutkin at azul.com>
Committer: Yuri Nesterenko <yan at openjdk.org>
URL:       https://git.openjdk.org/jdk11u-dev/commit/682728ef0a0a95abb2a86e85b5b4443689259f5a
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: 9cb01207b371e3e0f0af3652b78dd623205b537f

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

PR: https://git.openjdk.org/jdk11u-dev/pull/1904


More information about the jdk-updates-dev mailing list