mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8005552: c.s.t.javap.AttributeWriter.visitLocalVariableTable() uses incorrect format string
Reviewed-by: mcimadamore
This commit is contained in:
parent
e8952a4764
commit
39673a6ee9
1 changed files with 3 additions and 3 deletions
|
@ -365,8 +365,7 @@ public class AttributeWriter extends BasicWriter
|
|||
indent(+1);
|
||||
println("Start Length Slot Name Signature");
|
||||
for (LocalVariableTable_attribute.Entry entry : attr.local_variable_table) {
|
||||
Formatter formatter = new Formatter();
|
||||
println(formatter.format("%8d %7d %5d %5s %s",
|
||||
println(String.format("%5d %7d %5d %5s %s",
|
||||
entry.start_pc, entry.length, entry.index,
|
||||
constantWriter.stringValue(entry.name_index),
|
||||
constantWriter.stringValue(entry.descriptor_index)));
|
||||
|
@ -609,6 +608,7 @@ public class AttributeWriter extends BasicWriter
|
|||
public Void visit_append_frame(StackMapTable_attribute.append_frame frame, Void p) {
|
||||
printHeader(frame);
|
||||
println(" /* append */");
|
||||
indent(+1);
|
||||
println("offset_delta = " + frame.offset_delta);
|
||||
printMap("locals", frame.locals);
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue