RFR: 8336585: BoundAttribute.readEntryList not type-safe
Chen Liang
liach at openjdk.org
Wed Jul 17 20:56:53 UTC 2024
Qualify the reading of entry lists with the anticipated types up-front, so we throw the correct `ConstantPoolException` instead of `ClassCastException` when we encounter malformed attribute lists. (`ClassModel.getInterfaces` already behave correctly, in comparison)
-------------
Commit messages:
- 8336585: BoundAttribute.readEntryList not type-safe
Changes: https://git.openjdk.org/jdk/pull/20225/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20225&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8336585
Stats: 65 lines in 2 files changed: 43 ins; 8 del; 14 mod
Patch: https://git.openjdk.org/jdk/pull/20225.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20225/head:pull/20225
PR: https://git.openjdk.org/jdk/pull/20225
More information about the core-libs-dev
mailing list