You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bundles/org.openhab.automation.groovyscripting/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Groovy Scripting
2
2
3
-
This add-on provides support for [Groovy](https://groovy-lang.org/) 4.0.27 that can be used as a scripting language within automation rules and which eliminates the need to manually install Groovy.
3
+
This add-on provides support for [Groovy](https://groovy-lang.org/) 4.0.28 that can be used as a scripting language within automation rules.
Copy file name to clipboardExpand all lines: bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/DebuggingGraalScriptEngine.java
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -73,14 +73,22 @@ public Exception afterThrowsInvocation(Exception e) {
73
73
// OPS4J Pax Logging holds a reference to the exception, which causes the OpenhabGraalJSScriptEngine to not be
74
74
// removed from heap by garbage collection and causing a memory leak.
75
75
// Therefore, don't pass the exceptions itself to the logger, but only their message!
76
-
if (causeinstanceofIllegalArgumentException) {
77
-
logger.error("Failed to execute script: {}", stringifyThrowable(cause));
78
-
} elseif (causeinstanceofPolyglotException) {
79
-
logger.error("Failed to execute script: {}", stringifyThrowable(cause));
76
+
if (causeinstanceofIllegalArgumentException || causeinstanceofPolyglotException) {
77
+
StringstrT = stringifyThrowable(cause);
78
+
logger.error("Failed to execute script: {}", strT);
80
79
}
81
80
returne;
82
81
}
83
82
83
+
@Override
84
+
publicvoidclose() {
85
+
try {
86
+
super.close();
87
+
} catch (Exceptione) {
88
+
logger.warn("Ignorable exception during close: {}", stringifyThrowable(e));
Copy file name to clipboardExpand all lines: bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/OpenhabGraalJSScriptEngine.java
Copy file name to clipboardExpand all lines: bundles/org.openhab.automation.jsscripting/src/main/java/org/openhab/automation/jsscripting/internal/ScriptExtensionModuleProvider.java
0 commit comments