浏览代码

tests harness' handling of code calling System.exit

tags/V1_1_0
wisberg 21 年前
父节点
当前提交
02a2fdd335
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16
    0
      tests/harness/systemExit/SystemExit.java

+ 16
- 0
tests/harness/systemExit/SystemExit.java 查看文件

@@ -0,0 +1,16 @@

public class SystemExit {

/**
* Exit via System.exit(int);
* @param args null/empty String[], or integer exit value in args[0]
* @throws Exception
*/
public static void main(String[] args) throws Exception {
int result = 0;
if ((null != args) && (0 < args.length)) {
result = Integer.valueOf(args[0]).intValue();
}
System.exit(result);
}
}

正在加载...
取消
保存