[jdk17u-dev] RFR: 8275233: Incorrect line number reported in exception stack trace thrown from a lambda expression
Alexey Pavlyutkin
duke at openjdk.org
Wed Sep 21 06:22:13 UTC 2022
Hi! Here is backport of [JDK-8275233](https://bugs.openjdk.org/browse/JDK-8275233) that fixes wrong `-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
-------------
Commit messages:
- Backport d7c283a081c37bfb8bc5934e4b2af16cad512fd2
Changes: https://git.openjdk.org/jdk17u-dev/pull/702/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=702&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8275233
Stats: 52 lines in 6 files changed: 48 ins; 0 del; 4 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/702.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev pull/702/head:pull/702
PR: https://git.openjdk.org/jdk17u-dev/pull/702
More information about the jdk-updates-dev
mailing list