JImageValidator has been recently converted to use ClassFile API and original 
weak validation of class files was replaced with full class verification.
Unfortunately full class verification is too strong as it includes class 
assignability verification according to class hierarchy resolution.
This patch relaxes class assignability verification from JImageValidator by 
mocking ClassHierarchyResolver.
Resolution of all classes as interfaces during verification effectively cancels 
the assignability verification (as interface assignability is not verified).

Please review this pull request.

Thanks,
Adam

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

Commit messages:
 - 8317609: Classfile API fails to verify 
/jdk.jcmd/sun/tools/jstat/Alignment.class

Changes: https://git.openjdk.org/jdk/pull/16123/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16123&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8317609
  Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/16123.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16123/head:pull/16123

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

Reply via email to