JDK-8294969 : Convert jdk.jdeps javap to use the Classfile API
  • Type: Sub-task
  • Component: tools
  • Sub-Component: javap
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-10-07
  • Updated: 2023-09-21
  • Resolved: 2023-09-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 22
22 b16Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
classes directly using com.sun.tool.classfile library in com.sun.tools.javap package:
- AttributeWriter
- BasicWriter
- ClassWriter
- CodeWriter
- ConstantWriter
- InstructionDetailWriter
- JavapTask
- LocalVariableTableWriter
- LocalVariableTypeTableWriter
- Options
- SourceWriter
- StackMapWriter
- TryBlockWriter
- TypeAnnotationWriter
Comments
Changeset: 1203e11a Author: Adam Sotona <asotona@openjdk.org> Date: 2023-09-18 08:35:31 +0000 URL: https://git.openjdk.org/jdk/commit/1203e11a8d9b3ef0695282d980ad411213e6aa6c
18-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11411 Date: 2022-11-29 10:26:31 +0000
17-04-2023

Draft of pull request: https://github.com/openjdk/jdk/pull/11411
29-11-2022

FWIW, FYI, The classfile library was specifically written for javap, during a javap rewrite at some point, and extracted to a separate package when it became clear it might be more generally useful.
10-10-2022

This use case has been included in the Classfile API development, see: https://github.com/openjdk/jdk-sandbox/tree/classfile-api-dev-branch#use-cases
07-10-2022