RFR: 8361638: java.lang.classfile.CodeBuilder.catchingAll doesn't throw IllegalArgumentException if an existing catch block catches all exceptions
Chen Liang
liach at openjdk.org
Thu Jul 17 16:55:25 UTC 2025
The detection of catch builder arguments is not working for catch-all blocks. Update this to track CP indices including 0 so we can more easily validate the incoming ClassDesc are all non-primitive and there is no duplicate.
-------------
Commit messages:
- Formatting
- 8361638: java.lang.classfile.CodeBuilder.catchingAll doesn't throw IllegalArgumentException if an existing catch block catches all exceptions
Changes: https://git.openjdk.org/jdk/pull/26372/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26372&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8361638
Stats: 63 lines in 2 files changed: 40 ins; 9 del; 14 mod
Patch: https://git.openjdk.org/jdk/pull/26372.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26372/head:pull/26372
PR: https://git.openjdk.org/jdk/pull/26372
More information about the core-libs-dev
mailing list