mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -87,11 +87,11 @@ public class T4777949 {
|
|||
PrintWriter pw = new PrintWriter(sw);
|
||||
JavaFileManager fm = JavapFileManager.create(dc, pw);
|
||||
JavapTask t = new JavapTask(pw, fm, dc, args, classes);
|
||||
boolean ok = t.run();
|
||||
int ok = t.run();
|
||||
|
||||
List<Diagnostic<? extends JavaFileObject>> diags = dc.getDiagnostics();
|
||||
|
||||
if (!ok)
|
||||
if (ok != 0)
|
||||
error("javap failed unexpectedly");
|
||||
|
||||
System.err.println("args=" + args + " classes=" + classes + "\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue