2675N/A#
2675N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2675N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2675N/A#
2675N/A# This code is free software; you can redistribute it and/or modify it
2675N/A# under the terms of the GNU General Public License version 2 only, as
2675N/A# published by the Free Software Foundation.
2675N/A#
2675N/A# This code is distributed in the hope that it will be useful, but WITHOUT
2675N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2675N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2675N/A# version 2 for more details (a copy is included in the LICENSE file that
2675N/A# accompanied this code).
2675N/A#
2675N/A# You should have received a copy of the GNU General Public License version
2675N/A# 2 along with this work; if not, write to the Free Software Foundation,
2675N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2675N/A#
2675N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2675N/A# or visit www.oracle.com if you need additional information or have any
2675N/A# questions.
2675N/A#
2675N/A
2675N/A#
2675N/A# @test
2675N/A# @bug 6977851
2675N/A# @summary NPE from FileURLConnection.connect
2675N/A# @build DirPermissionDenied
2675N/A# @run shell DirPermissionDenied.sh
2675N/A
2675N/ATESTDIR="${TESTCLASSES}/DirPermissionDeniedDirectory"
2675N/Aecho ${TESTDIR}
2675N/A
2675N/Arm -rf ${TESTDIR}
2675N/Amkdir -p ${TESTDIR}
2675N/Achmod 333 ${TESTDIR}
2675N/A
2675N/A$TESTJAVA/bin/java -classpath $TESTCLASSES DirPermissionDenied ${TESTDIR}
2675N/Aresult=$?
2675N/Arm -rf ${TESTDIR}
2675N/Aexit $result