RFR: 8336585: BoundAttribute.readEntryList not type-safe
Adam Sotona
asotona at openjdk.org
Thu Jul 18 07:34:38 UTC 2024
On Wed, 17 Jul 2024 20:51:32 GMT, Chen Liang <liach at openjdk.org> wrote:
> 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)
Looks good to me.
-------------
Marked as reviewed by asotona (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/20225#pullrequestreview-2184963817
More information about the core-libs-dev
mailing list