RFR(XS) 8218029 [TESTBUG] Use -Djava.class.path= to specify empty -cp in CDS tests

Calvin Cheung calvin.cheung at oracle.com
Wed Jan 30 23:03:52 UTC 2019


Hi Ioi,

The fix looks fine but I'm not sure if it is necessary.

I've tried the following on linux and windows and the java.class.path 
property is not set.

java -cp "" MyApp

MyApp just display all system properties as follows:

         Properties properties = System.getProperties();

         properties.forEach((k, v) -> System.out.println(k + ":" + v));

thanks,
Calvin

On 1/29/19, 7:51 PM, Ioi Lam wrote:
> https://bugs.openjdk.java.net/browse/JDK-8218029
> http://cr.openjdk.java.net/~iklam/jdk13/8218029-testbug-empty-classpath.v01/ 
>
>
> Please review this simple fix. For portability,
>
>      "-cp", "\"\"",
>
> in the JVM command-line is replaced with
>
>      "-Djava.class.path="
>
>
> Thanks!
>
> Ioi
>


More information about the hotspot-runtime-dev mailing list