RFR: 8294969: Convert jdk.jdeps javap to use the Classfile API

Adam Sotona asotona at openjdk.org
Mon Apr 17 13:47:00 UTC 2023

javap uses proprietary com.sun.tools.classfile library to parse class files.

This patch converts javap to use Classfile API.

Please review.



Commit messages:
 - fixed TestClassNameWarning
 - Merge branch 'master' into JDK-8294969-javap
 - consolidated safeguarding of IAE in javap
 - consolidation of constant pool originating IAEs and IOOBEs into ConstantPoolException extending IAE
 - Safeguarding CP errors + test
 - Merge branch 'master' into JDK-8294969-javap
 - fixed tools/javap/TestClassNameWarning.java
 - fixed tools/javap/T6866657.java and tools/javap/T7186925.java
 - fix of tools/javap/attribute_length/AttributeLengthTest.java
 - Merge remote-tracking branch 'upstream/master' into JDK-8294969-javap
 - ... and 203 more: https://git.openjdk.org/jdk/compare/c0b4957f...5872761b

Changes: https://git.openjdk.org/jdk/pull/11411/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11411&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8294969
  Stats: 3742 lines in 28 files changed: 904 ins; 1723 del; 1115 mod
  Patch: https://git.openjdk.org/jdk/pull/11411.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/11411/head:pull/11411

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

More information about the compiler-dev mailing list