RFR: 8275233: Incorrect line number reported in exception stack trace thrown from a lambda expression
Liam Miller-Cushon
cushon at openjdk.java.net
Tue Dec 7 05:52:29 UTC 2021
This change fixes a bug introduced in [JDK-8200301](https://bugs.openjdk.java.net/browse/JDK-8200301), which tries to check if line or variable debug info is generated, but fails to consider that line debug info is generated if no `-g` or `-g:` options are passed.
The new check is consistent with the handling of lines in e.g.
* https://github.com/openjdk/jdk/blob/17ceef97c3df2326d585b2a298e5daa5dcfe3d99/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java#L421-L422
* https://github.com/openjdk/jdk/blob/fe89dd3b0d47807c7dbfe24d17f6aca152fc8908/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Gen.java#L118-L120
-------------
Commit messages:
- 8275233: Incorrect line number reported in exception stack trace thrown from a lambda expression
Changes: https://git.openjdk.java.net/jdk/pull/6733/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6733&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8275233
Stats: 51 lines in 5 files changed: 48 ins; 0 del; 3 mod
Patch: https://git.openjdk.java.net/jdk/pull/6733.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/6733/head:pull/6733
PR: https://git.openjdk.java.net/jdk/pull/6733
More information about the compiler-dev
mailing list