119afc377a
PR libgcj/26990: * prims.cc (_Jv_RunMain): Use exitNoChecksAccessor. * gnu/java/lang/natMainThread.cc (call_main): Use exitNoChecksAccessor. * testsuite/libjava.lang/pr26990.out: New file. * testsuite/libjava.lang/pr26990.java: New file. * java/lang/Runtime.java (exitNoChecks): New method. (exitNoChecksAccessor): Likewise. (exit): Call exitNoChecks. From-SVN: r112685
14 lines
424 B
Java
14 lines
424 B
Java
public class pr26990
|
|
{
|
|
public static void main (String args[]) throws Exception
|
|
{
|
|
System.setSecurityManager(new SecurityManager()
|
|
{
|
|
public void checkExit(int status)
|
|
{
|
|
throw new SecurityException("This is a bug");
|
|
}
|
|
});
|
|
}
|
|
}
|