8007052: javap should include the descriptor for a method in verbose mode

Reviewed-by: mcimadamore
This commit is contained in:
Jonathan Gibbons 2013-02-15 08:28:42 -08:00
parent ee65d32c20
commit a695bef890
4 changed files with 100 additions and 8 deletions

View file

@ -379,8 +379,8 @@ public class ClassWriter extends BasicWriter {
indent(+1);
if (options.showInternalSignatures)
println("Signature: " + getValue(f.descriptor));
if (options.showDescriptors)
println("descriptor: " + getValue(f.descriptor));
if (options.verbose && !options.compat)
writeList("flags: ", flags.getFieldFlags(), "\n");
@ -475,8 +475,8 @@ public class ClassWriter extends BasicWriter {
indent(+1);
if (options.showInternalSignatures) {
println("Signature: " + getValue(m.descriptor));
if (options.showDescriptors) {
println("descriptor: " + getValue(m.descriptor));
}
if (options.verbose && !options.compat) {
@ -520,7 +520,7 @@ public class ClassWriter extends BasicWriter {
setPendingNewline(
options.showDisassembled ||
options.showAllAttrs ||
options.showInternalSignatures ||
options.showDescriptors ||
options.showLineAndLocalVariableTables ||
options.verbose);
}