8172309: classpath wildcards code does not support --class-path
authorhenryjen
Tue, 31 Jan 2017 13:55:03 -0800
changeset 43377 10a4ca148d89
parent 43376 f165c71d9e03
child 43378 c199e27b2ae1
8172309: classpath wildcards code does not support --class-path Reviewed-by: jjg, ksrini
langtools/test/tools/javac/Paths/wcMineField.sh
--- a/langtools/test/tools/javac/Paths/wcMineField.sh	Mon Jan 30 17:43:18 2017 -0800
+++ b/langtools/test/tools/javac/Paths/wcMineField.sh	Tue Jan 31 13:55:03 2017 -0800
@@ -26,7 +26,7 @@
 #
 # @test
 # @summary Test classpath wildcards for javac and java -classpath option.
-# @bug 6268383
+# @bug 6268383 8172309
 # @run shell/timeout=600 wcMineField.sh
 
 # To run this test manually, simply do ./wcMineField.sh
@@ -186,6 +186,8 @@
 Failure "$javac" ${TESTTOOLVMOPTS} -classpath "GooJar/*${PS}." Main1.java
 Success "$javac" ${TESTTOOLVMOPTS} -cp "GooJar/SubDir/*" Main1.java
 Success "$javac" ${TESTTOOLVMOPTS} -classpath "GooJar/SubDir/*" Main1.java
+Success "$javac" ${TESTTOOLVMOPTS} --class-path "GooJar/SubDir/*" Main1.java
+Success "$javac" ${TESTTOOLVMOPTS} --class-path="GooJar/SubDir/*" Main1.java
 #Same with launcher. Should not load jar in subdirectories unless specified
 Failure "$java" ${TESTVMOPTS}  -classpath "GooJar/*${PS}." Main1
 Success "$java" ${TESTVMOPTS}  -classpath "GooJar/SubDir/*${PS}." Main1