Integrated: 8336585: BoundAttribute.readEntryList not type-safe

Chen Liang liach at openjdk.org
Thu Jul 18 21:48:36 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)

This pull request has now been integrated.

Changeset: 902c2afb
Author:    Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/902c2afb6714f778e3229c8411e9f9d5c392b388
Stats:     65 lines in 2 files changed: 43 ins; 8 del; 14 mod

8336585: BoundAttribute.readEntryList not type-safe

Reviewed-by: asotona

-------------

PR: https://git.openjdk.org/jdk/pull/20225


More information about the core-libs-dev mailing list