Actions
Bug #12896
closedThread.stop is removed in Java 11 but used in jsengine
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
The long deprecated Thread.stop method is finally removed in the Java 11.
We use it in our JS script engine jail to avoid rogue script looping forever.
We need to change that (and if we find a correct solution, use it in all supported version).
Some ideas: https://stackoverflow.com/a/1601307/436331
Concerned code: https://github.com/Normation/rudder/blob/master/rudder-core/src/main/scala/com/normation/rudder/services/policies/JavascriptEngine.scala#L507
Actions