4075303: Use javap to enquire aboput a specific inner class

4348375: Javap is not internationalized
4459541: "javap -l" shows line numbers as signed short; they should be unsigned
4501660: change diagnostic of -help as 'print this help message and exit'
4776241: unused source file in javap..
4870651: javap should recognize generics, varargs, enum
4876942: javap invoked without args does not print help screen
4880663: javap could output whitespace between class name and opening brace
4975569: javap doesn't print new flag bits
6271787: javap dumps LocalVariableTypeTable attribute in hex, needs to print a table
6305779: javap: support annotations
6439940: Clean up javap implementation
6469569: wrong check of searchpath in JavapEnvironment
6474890: javap does not open .zip files in -classpath
6587786: Javap throws error : "ERROR:Could not find <classname>" for JRE classes
6622215: javap ignores certain relevant access flags
6622216: javap names some attributes incorrectly
6622232: javap gets whitespace confused
6622260: javap prints negative bytes incorrectly in hex

Reviewed-by: ksrini
This commit is contained in:
Jonathan Gibbons 2008-06-03 13:26:47 -07:00
parent e3ba3ecd1d
commit 0a7516d744
87 changed files with 11690 additions and 8 deletions

View file

@ -49,6 +49,12 @@ public class Main {
}
public static void main(String argv[]) {
// unless first arg is -Xold, use new javap
if (!(argv.length >= 1 && argv[0].equals("-Xold"))) {
com.sun.tools.javap.Main.main(argv);
return;
}
entry(argv);
if (errorOccurred) {
System.exit(1);
@ -178,6 +184,8 @@ public class Main {
}
} else if (arg.equals("-all")) {
env.showallAttr = true;
} else if (arg.equals("-Xold")) {
// ignore: this is old javap
} else {
error("invalid flag: " + arg);
usage();