mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8048146: sjavac uses unexpected exit code of -1
Changed exit codes for sjavac Reviewed-by: jlahoda
This commit is contained in:
parent
c6e7003173
commit
e85033c628
16 changed files with 84 additions and 76 deletions
|
@ -36,6 +36,7 @@
|
|||
* @run main Wrapper HiddenFiles
|
||||
*/
|
||||
|
||||
import com.sun.tools.javac.main.Main.Result;
|
||||
import com.sun.tools.javac.util.Assert;
|
||||
import com.sun.tools.sjavac.server.Sjavac;
|
||||
|
||||
|
@ -62,6 +63,6 @@ public class HiddenFiles extends SjavacBase {
|
|||
"-d", BIN.toString(),
|
||||
"--state-dir=" + STATE_DIR);
|
||||
|
||||
Assert.check(rc == Sjavac.RC_FATAL, "Compilation succeeded unexpectedly.");
|
||||
Assert.check(rc == Result.ERROR.exitCode, "Compilation succeeded unexpectedly.");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue