Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23792

[QE](7.4.z) Ignore Script Batch Testing failing with jdk 17 since the JavaScript Engine was removed in JDK15

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • Batch, Test Suite
    • False
    • None
    • False

      Batch Script tests fail with jdk17 ...

      JBERET000637: Invalid script attributes: type = javascript, src = null at org.jberet.jberet-core/org.jberet.job.model.Script.getEngine(Script.java:174) 

      This appears to be caused by [1][2] , so the Nashorn JavaScript Engine was deprecated in JDK11 and then removed in JDK15, so JDK17 would no longer have the JavaScript Engine which would cause issues for anything trying to use it.

      [1] https://openjdk.org/jeps/335 - JEP 335: Deprecate the Nashorn JavaScript Engine - Deprecated in JDK11

      [2] https://openjdk.org/jeps/372 - JEP 372: Remove the Nashorn JavaScript Engine - Removed in JDK15

       

            rchakrab Ranabir Chakraborty
            psotirop@redhat.com Panagiotis Sotiropoulos
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: