37 public static void main(String[] args) throws Exception { |
37 public static void main(String[] args) throws Exception { |
38 new InvalidOptions().run(); |
38 new InvalidOptions().run(); |
39 } |
39 } |
40 |
40 |
41 void run() throws Exception { |
41 void run() throws Exception { |
42 test(2, "-h", "Error: -h is no longer available - use the javah program"); |
|
43 test(2, "-b", "Error: unknown option: -b", |
42 test(2, "-b", "Error: unknown option: -b", |
44 "Usage: javap <options> <classes>", |
43 "Usage: javap <options> <classes>", |
45 "use -help for a list of possible options"); |
44 "use -help for a list of possible options"); |
46 if (errorCount > 0) |
45 if (errorCount > 0) |
47 throw new Exception(errorCount + " errors received"); |
46 throw new Exception(errorCount + " errors received"); |