RFR: 8331655: ClassFile API ClassCastException with verbose output of certain class files [v2]
Adam Sotona
asotona at openjdk.org
Fri May 3 17:13:04 UTC 2024
> Specifically corrupted constant pool of a class file can cause ClassCastException, when the entries are accessed by Class-File API in exact order.
>
> This fix avoids the ClassCastException and throws ConstantPoolException instead.
> Test is attached.
>
> Please review.
>
> Thanks,
> Adam
Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
applied suggested changes
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/19088/files
- new: https://git.openjdk.org/jdk/pull/19088/files/59191c6f..2e94a1b0
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=19088&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=19088&range=00-01
Stats: 15 lines in 1 file changed: 0 ins; 14 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/19088.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/19088/head:pull/19088
PR: https://git.openjdk.org/jdk/pull/19088
More information about the core-libs-dev
mailing list