gcc/libjava/testsuite/libjava.lang/pr26990.java
Tom Tromey 119afc377a re PR classpath/26990 (SecurityManager.checkExit() problem)
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
2006-04-04 23:25:09 +00:00

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");
}
});
}
}