From 0a6ece409487453e20a6affa3708047ea8c3d4ac Mon Sep 17 00:00:00 2001 From: jgomer2001 Date: Sat, 7 Jan 2023 11:12:28 -0500 Subject: [PATCH] fix: add 'java' to the list of restricted variable names #3533 --- .../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