Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8338613

PetClinic classpath is not windows compatible

XMLWordPrintable

      In test/hotspot/jtreg/runtime/cds/appcds/applications/spring-petclinic/SpringPetClinic.java, we launch a child JVM with the following classpath setting:

      java ... -cp @petclinic-snapshot/target/unpacked/classpath -Xlog:class+load=debug:file=SpringPetClinic.classlist.log::filesize=0 org.springframework.samples.petclinic.PetClinicApplication

      https://github.com/openjdk/leyden/blob/864228c7c494e7d46ab653eaacaacb8169dd34df/test/hotspot/jtreg/runtime/cds/appcds/applications/spring-petclinic/SpringPetClinic.java#L75

      However, the petclinic-snapshot/target/unpacked/classpath is created with Linux path separators (:) so it doesn't work on Windows:

      [STDERR]
      Error: Could not find or load main class org.springframework.samples.petclinic.PetClinicApplication
      Caused by: java.lang.ClassNotFoundException: org.springframework.samples.petclinic.PetClinicApplication

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: