2141N/A# Testcase for PR381 Stackoverflow error with security manager, signed jars 2141N/A# Copyright (c) 2009, Red Hat Inc. 2141N/A# This code is free software; you can redistribute it and/or modify 2141N/A# it under the terms of the GNU General Public License as published by 2141N/A# the Free Software Foundation; either version 2, or (at your option) 2141N/A# This code is distributed in the hope that it will be useful, but 2141N/A# WITHOUT ANY WARRANTY; without even the implied warranty of 2141N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2141N/A# General Public License for more details. 2141N/A# You should have received a copy of the GNU General Public License version 2141N/A# 2 along with this work; if not, write to the Free Software Foundation, 2141N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2141N/A# @summary Stackoverflow error with security manager, signed jars and debug. 2141N/A# @build TimeZoneDatePermissionCheck 2141N/A# Set default if not run under jtreg from test dir itself 2141N/Aif [
"${TESTCLASSES}" =
"" ] ;
then 2141N/Aif [
"${TESTJAVA}" =
"" ] ;
then 2141N/A# create a test keystore and dummy cert 2141N/A -
dname "cn=Mark Wildebeest, ou=FreeSoft, o=Red Hat, c=NL" \
2141N/A# create a jar file to sign with the test class in it. 2141N/A# run it with the security manager on, plus accesscontroller debugging 2141N/A# will go into infinite recursion trying to get enough permissions for 2141N/A# printing Date of failing certificate unless fix is applied.