langtools/test/tools/javac/Paths/Diagnostics.sh
author jjg
Thu, 30 Apr 2015 17:35:03 -0700
changeset 30071 3564e7eeaead
parent 27579 d1a63c99cdd5
child 36526 3b41f1c69604
permissions -rw-r--r--
8079191: remove remaining references to "cp -p" from langtools/test Reviewed-by: vromero
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
#!/bin/sh
06bc494ca11e Initial load
duke
parents:
diff changeset
     2
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
#
30071
3564e7eeaead 8079191: remove remaining references to "cp -p" from langtools/test
jjg
parents: 27579
diff changeset
     4
# Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
#
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
# This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
# under the terms of the GNU General Public License version 2 only, as
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
# published by the Free Software Foundation.
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
#
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    23
# questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
# @test
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
# @bug 4884487 6295519 6236704 6429613
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
# @summary Test for proper diagnostics during path manipulation operations
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
# @author Martin Buchholz
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
# @run shell/timeout=180 Diagnostics.sh
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
# To run this test manually, simply do ./Diagnostics.sh
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
. ${TESTSRC-.}/Util.sh
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
set -u
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    40
# BCP=`DefaultBootClassPath`
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
DiagnosticsInEnglishPlease
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    44
No() { NO="no"; "$@"; NO=""; }  # No means NO!
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
Warning() {
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
    HorizontalRule
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
    echo "$@"
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
    output=`"$@" 2>&1`; rc="$?"
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
    test -n "$output" && echo "$output"
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
    test $rc -eq 0 || Fail "Command \"$*\" failed with exitValue $rc";
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
    case "$output" in *warning:*) gotwarning="yes";; *) gotwarning="no";; esac
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
    if test "$gotwarning" = "yes" -a "$NO" = "no"; then
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    55
        Fail "Command \"$*\" printed an unexpected warning"
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
    elif test "$gotwarning" = "no" -a "$NO" != "no"; then
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    57
        Fail "Command \"$*\" did not generate the expected warning"
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
    fi
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
}
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
Error() {
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
    HorizontalRule
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
    echo "$@"
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
    output=`"$@" 2>&1`; rc="$?"
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
    test -n "$output" && echo "$output"
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
    case "$output" in *error:*) goterror="yes";; *) goterror="no";; esac
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
    if test "$NO" = "no"; then
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    69
        test "$rc" -ne 0 && \
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    70
            Fail "Command \"$*\" failed with return code $rc"
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    71
        test "$goterror" = "yes" && \
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    72
            Fail "Command \"$*\" did not generate any error message"
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
    else
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    74
        test "$rc" -eq 0 && \
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    75
            Fail "Command \"$*\" was supposed to Die with fatal error";
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    76
        test "$goterror" = "no" && \
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    77
            Fail "Command \"$*\" printed an unexpected error message"
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
    fi
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
}
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
Cleanup() {
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
    82
    Sys rm -rf Main.java Main.class
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
    Sys rm -rf classes classes.foo classes.jar classes.war classes.zip
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
    Sys rm -rf MANIFEST.MF classesRef.jar classesRefRef.jar jars
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
}
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
Cleanup
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
echo "public class Main{public static void main(String[]a){}}" > Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
# No warnings unless -Xlint:path is used
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
No Warning "$javac" ${TESTTOOLVMOPTS} Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
No Warning "$javac" ${TESTTOOLVMOPTS} -cp ".${PS}classes" Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
# Warn for missing elts in user-specified paths
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path -cp ".${PS}classes"         Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-Xbootclasspath/p:classes" Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
Warning "$javac" ${TESTTOOLVMOPTS} -Xlint      "-Xbootclasspath/a:classes" Main.java
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
   102
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-endorseddirs" "classes"   Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
Warning "$javac" ${TESTTOOLVMOPTS} -Xlint      "-extdirs"      "classes"   Main.java
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
   105
# Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-Xbootclasspath:classes${PS}${BCP}" Main.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
# No warning for missing elts in "system" paths
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
#----------------------------------------------------------------
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
   110
# No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-J-Djava.endorsed.dirs=classes" Main.java
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
   111
# No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-J-Djava.ext.dirs=classes"      Main.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-J-Xbootclasspath/p:classes"    Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-J-Xbootclasspath/a:classes"    Main.java
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
   114
# No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-J-Xbootclasspath:classes${PS}${BCP}" Main.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
# No warning if class path element exists
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
Sys mkdir classes
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path -cp ".${PS}classes"         Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-endorseddirs"   "classes" Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-extdirs"        "classes" Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-Xbootclasspath/p:classes" Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-Xbootclasspath/a:classes" Main.java
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
   125
# No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path "-Xbootclasspath:classes${PS}${BCP}" Main.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
Sys "$jar" cf classes.jar Main.class
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
Sys cp classes.jar classes.war
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
Sys cp classes.war classes.zip
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path -cp ".${PS}classes.jar"     Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
   Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path -cp ".${PS}classes.war"     Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path -cp ".${PS}classes.zip"     Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
#----------------------------------------------------------------
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
   135
# Warn if -Xlint is used and if class path element refers to
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
# regular file which doesn't look like a zip file, but is
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
Sys cp classes.war classes.foo
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
   Warning "$javac" ${TESTTOOLVMOPTS} -Xlint:path -cp ".${PS}classes.foo"     Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
# No error if class path element refers to regular file which is
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
# not a zip file
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
No Error "$javac" ${TESTTOOLVMOPTS} -cp Main.java Main.java # Main.java is NOT a jar file
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
No Error "$javac" ${TESTTOOLVMOPTS} Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
#----------------------------------------------------------------
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
   150
# Warn if -Xlint is used and if class path element refers to
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
# regular file which is not a zip file
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
Warning "$javac" ${TESTTOOLVMOPTS} -Xlint -cp Main.java Main.java # Main.java is NOT a jar file
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
# Test jar file class path reference recursion
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
MkManifestWithClassPath classesRef.jar
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
Sys "$jar" cmf MANIFEST.MF classesRefRef.jar Main.class
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
# Non-existent recursive Class-Path reference gives warning
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
No Warning "$javac" ${TESTTOOLVMOPTS}             -classpath   classesRefRef.jar Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
   Warning "$javac" ${TESTTOOLVMOPTS} -Xlint      -classpath   classesRefRef.jar Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint -Xbootclasspath/p:classesRefRef.jar Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
BadJarFile classesRef.jar
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
# Non-jar file recursive Class-Path reference gives error
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
   Error "$javac" ${TESTTOOLVMOPTS}      -classpath   classesRefRef.jar Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
No Error "$javac" ${TESTTOOLVMOPTS} -Xbootclasspath/a:classesRefRef.jar Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
MkManifestWithClassPath classes
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
Sys "$jar" cmf MANIFEST.MF classesRef.jar Main.class
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
# Jar file recursive Class-Path reference is OK
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint      -classpath   classesRefRef.jar Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
No Warning "$javac" ${TESTTOOLVMOPTS} -Xlint -Xbootclasspath/p:classesRefRef.jar Main.java
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
#----------------------------------------------------------------
8424
5e31b2eb5aa3 6485027: javac incorrectly handles relative paths in manifest classpath
jjg
parents: 5520
diff changeset
   186
# Class-Path attribute followed in extdirs or endorseddirs
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
Sys mkdir jars
30071
3564e7eeaead 8079191: remove remaining references to "cp -p" from langtools/test
jjg
parents: 27579
diff changeset
   189
Sys cp classesRefRef.jar jars/.
8424
5e31b2eb5aa3 6485027: javac incorrectly handles relative paths in manifest classpath
jjg
parents: 5520
diff changeset
   190
   Warning "$javac" ${TESTTOOLVMOPTS} -Xlint -extdirs      jars Main.java
5e31b2eb5aa3 6485027: javac incorrectly handles relative paths in manifest classpath
jjg
parents: 5520
diff changeset
   191
   Warning "$javac" ${TESTTOOLVMOPTS} -Xlint -endorseddirs jars Main.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
# Bad Jar file in extdirs and endorseddirs should not be ignored
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
#----------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
BadJarFile jars/classesRef.jar
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
   197
  Error "$javac" ${TESTTOOLVMOPTS} -Xlint -extdirs      jars Main.java
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents: 8424
diff changeset
   198
  Error "$javac" ${TESTTOOLVMOPTS} -Xlint -endorseddirs jars Main.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
Cleanup
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
Bottom Line