Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1692

Tests are not run with -Djava8.home java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.7.0.CR3
    • 1.7.0.CR2
    • Testsuite
    • None

      Elytron enforces JDK9+ jdk, but is not possible to run tests with jdk 8.

      java -version
      java version "11" 2018-09-25
      Java(TM) SE Runtime Environment 18.9 (build 11+28)
      Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)
      
      mvn clean test -Dtest=MechanismDatabaseTest -Dmaven.test.redirectTestOutputToFile=true -Djava8.home=/home/mchoma/app/jdk8u172-b11 -X
      ...
      [DEBUG] Forking command line: /bin/sh -c cd /home/mchoma/git-repo/wildfly-elytron && /home/mchoma/app/jdk-11+28/bin/java
      

      Also in surefire reports java8 folder there is java 11 logged

          <property name="java.vendor" value="Oracle Corporation"/>
          <property name="java.vm.info" value="mixed mode"/>
          <property name="java.vm.version" value="11+28"/>
      

      Setting to blocker as currently I dont see way how to run tests on jdk8.

              jucook Justin Cook (Inactive)
              mchoma@redhat.com Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: