From a970d88d81f920973f3ba812db97448f135090a9 Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 8 Jan 2023 12:08:43 -0500 Subject: [PATCH] fix: add 'java' to the list of restricted variable names #3533 (#3534) --- .../src/main/java/io/jans/agama/dsl/VarsTransformer.java | 3 +++ jans-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/agama/transpiler/src/main/java/io/jans/agama/dsl/VarsTransformer.java b/agama/transpiler/src/main/java/io/jans/agama/dsl/VarsTransformer.java index 0f0a97979c4..7cfcc65e94d 100644 --- a/agama/transpiler/src/main/java/io/jans/agama/dsl/VarsTransformer.java +++ b/agama/transpiler/src/main/java/io/jans/agama/dsl/VarsTransformer.java @@ -32,6 +32,9 @@ public class VarsTransformer { // http://web.archive.org/web/20210304081342/https://developer.mozilla.org/en-US/docs/Scripting_Java "Packages", + // Prevent rhino trying to interpret an expression as a package reference + "java", + // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects // function names not included because they cannot be invoked from DSL code // Control abstraction objects (except Promise), Reflection, Internationalization, diff --git a/jans-bom/pom.xml b/jans-bom/pom.xml index 5d2f95c34f3..afcc2f702d1 100644 --- a/jans-bom/pom.xml +++ b/jans-bom/pom.xml @@ -273,7 +273,7 @@ com.nimbusds nimbus-jose-jwt - 9.25.6 + 9.28