RFR: 8332614: Type-checked ConstantPool.entryByIndex and ClassReader.readEntryOrNull [v5]
Chen Liang
liach at openjdk.org
Wed May 29 12:08:28 UTC 2024
> I propose to add type-checked ConstantPool.entryByIndex and ClassReader.readEntryOrNull taking an extra Class parameter, which throws ConstantPoolException instead of ClassCastException on type mismatch, which can happen to malformed ClassFiles.
>
> Requesting a review from @asotona. Thanks!
>
> Proposal on mailing list: https://mail.openjdk.org/pipermail/classfile-api-dev/2024-May/000512.html
Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
Remove redundant import
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/19330/files
- new: https://git.openjdk.org/jdk/pull/19330/files/b3b94639..ec56ce98
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=19330&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=19330&range=03-04
Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/19330.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/19330/head:pull/19330
PR: https://git.openjdk.org/jdk/pull/19330
More information about the core-libs-dev
mailing list