8019397: javap does not show SourceDebugExtension properly

Reviewed-by: jjg
This commit is contained in:
Dmytro Sheyko 2013-07-02 10:21:41 +01:00 committed by Vicente Romero
parent 547a050fe1
commit ba85477f84
2 changed files with 11 additions and 8 deletions

View file

@ -513,7 +513,12 @@ public class AttributeWriter extends BasicWriter
}
public Void visitSourceDebugExtension(SourceDebugExtension_attribute attr, Void ignore) {
println("SourceDebugExtension: " + attr.getValue());
println("SourceDebugExtension:");
indent(+1);
for (String s: attr.getValue().split("[\r\n]+")) {
println(s);
}
indent(-1);
return null;
}