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

Reply via email to