JDK-8234687 : change javap reporting on unknown attributes
Type:Enhancement
Component:tools
Sub-Component:javac
Affected Version:11,13
Priority:P3
Status:Resolved
Resolution:Fixed
Submitted:2019-11-22
Updated:2021-02-03
Resolved:2019-11-23
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.
javap currently reports an "error" if it encounters an unknown attribute, and then prints the name and a hex dump of the data bytes.
"Error" seems a bit over the top. It would be better to report a warning or notice instead.
Comments
Fix request (13u)
Requesting backport to 13u for parity with 11u.
The patch applies cleanly.
Tested with tier1; new test fails without the patch, passes with it.
27-01-2021
Fix Request (11u)
Makes javap more resilient in the face of newer bytecode. Patch applies cleanly to 11u, new test fails without the patch, passes with it. Additional tier{1,2} testing passes.