mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8007907: javap, method com.sun.tools.javap.Main.run returns 0 even in case of class not found error
Reviewed-by: jjg
This commit is contained in:
parent
4836bfbcf1
commit
3596018eb7
6 changed files with 117 additions and 43 deletions
|
@ -66,8 +66,7 @@ public class JavapTaskCtorFailWithNPE {
|
|||
JavaFileManager fm = JavapFileManager.create(dc, pw);
|
||||
JavapTask t = new JavapTask(pw, fm, dc, null,
|
||||
Arrays.asList(classToCheck.getPath()));
|
||||
boolean ok = t.run();
|
||||
if (!ok)
|
||||
if (t.run() != 0)
|
||||
throw new Error("javap failed unexpectedly");
|
||||
|
||||
List<Diagnostic<? extends JavaFileObject>> diags = dc.getDiagnostics();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue