sunToolsJavacMain.sh revision 2362
98N/A#
911N/A# Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
767N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
98N/A#
98N/A# This code is free software; you can redistribute it and/or modify it
919N/A# under the terms of the GNU General Public License version 2 only, as
919N/A# published by the Free Software Foundation.
919N/A#
919N/A# This code is distributed in the hope that it will be useful, but WITHOUT
919N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
919N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
919N/A# version 2 for more details (a copy is included in the LICENSE file that
919N/A# accompanied this code).
919N/A#
919N/A# You should have received a copy of the GNU General Public License version
919N/A# 2 along with this work; if not, write to the Free Software Foundation,
919N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
919N/A#
919N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
919N/A# or visit www.oracle.com if you need additional information or have any
919N/A# questions.
919N/A#
98N/A
98N/A# NOTE: This test has been at least temporarily disabled because of
98N/A# the fix for 4926127.
98N/A
493N/A# @bug 4633413 4900663
98N/A# @summary It should not be possible to execute the oldjavac
98N/A# compiler implementation by invoking sun.tools.javac.Main.
814N/A# @author Peter Jones
98N/A
911N/Aif [ "${TESTJAVA}" = "" ]
911N/Athen
911N/A echo "TESTJAVA not set. Test cannot execute. Failed."
911N/A exit 1
98N/Afi
98N/A
98N/Aset -x
98N/A
98N/A${TESTJAVA}/bin/java -classpath ${TESTJAVA}/lib/tools.jar sun.tools.javac.Main -d ${TESTCLASSES:-.} ${TESTSRC:-.}/Foo.java
156N/A
493N/Aresult=$?
493N/Aif [ $result -eq 0 ]
98N/Athen
98N/A echo "TEST FAILED: sun.tools.javac.Main invocation succeeded"
705N/A exit 1
705N/Afi
720N/Aecho "TEST PASSED: sun.tools.javac.Main invocation failed"
720N/Aexit 0
98N/A