< prev index next >

test/jdk/java/util/TimeZone/TimeZoneDatePermissionCheckRun.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2009, 2018, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2009, 2019, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 67,76 **** --- 67,78 ---- //will go into infinite recursion trying to get enough permissions for //printing Date of failing certificate unless fix is applied. JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java"); launcher.addToolArg("-Djava.security.manager") .addToolArg("-Djava.security.debug=access,failure,policy") + .addToolArg("-ea") + .addToolArg("-esa") .addToolArg("-cp") .addToolArg(jarPath) .addToolArg("TimeZoneDatePermissionCheck"); int exitCode = ProcessTools.executeCommand(launcher.getCommand())
< prev index next >