]> git.basschouten.com Git - openhab-addons.git/commit
[jsscripting] Fix failure on some platforms & JDKs (#13714)
authorFlorian Hotze <florianh_dev@icloud.com>
Mon, 14 Nov 2022 19:30:44 +0000 (20:30 +0100)
committerGitHub <noreply@github.com>
Mon, 14 Nov 2022 19:30:44 +0000 (20:30 +0100)
commit11d3c641e5f84be371a133e15f129696b9ea5f31
tree877bb336be8c59de92dd18776b1be31a0570089a
parent40723a80a07cb0406edc1a3f779a501f8de3b361
[jsscripting] Fix failure on some platforms & JDKs (#13714)

* [jsscripting] Downgrade GraalVM to fix issue with armv7l & OpenJDK 11.0.16

The community reported several cases where JS Scripting was not working due to some issue with the injection of the global script.
This issue seems to only occur on armv7l (e.g. Raspberry Pi 32bit) and OpenJDK 11.0.16.
Investigation showed that the occurrence of the problem depends on the GraalJS version.

See https://community.openhab.org/t/js-scripting-all-scripts-stop-working-when-upgrading-to-3-4-0-m4/140837.

* [jsscripting] Add logging for injection of JSRuntimeFeatures
* [jsscripting] Lint `@jsscripting-globals.js` with semistandard
* [jsscripting] Remove ICU4J as it moved to `org.graalvm.truffle`

Reference https://github.com/oracle/graaljs/blob/f5661d46554c5f1dc8651dca2614da20e0326031/CHANGELOG.md#version-2200.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
bundles/org.openhab.automation.jsscripting/pom.xml
bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/OpenhabGraalJSScriptEngine.java
bundles/org.openhab.automation.jsscripting/src/main/resources/node_modules/@jsscripting-globals.js