This is an automated email from the ASF dual-hosted git repository.
henrib pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git
The following commit(s) were added to refs/heads/master by this push:
new c9d71a85 JEXL-381: restore non-cyclic class init;
c9d71a85 is described below
commit c9d71a8528872794a9c9f7f7dcb8a53df7a4df66
Author: henrib <[email protected]>
AuthorDate: Tue Feb 7 17:13:02 2023 +0100
JEXL-381: restore non-cyclic class init;
---
.../org/apache/commons/jexl3/internal/introspection/Permissions.java | 2 +-
.../java/org/apache/commons/jexl3/introspection/JexlPermissions.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/src/main/java/org/apache/commons/jexl3/internal/introspection/Permissions.java
b/src/main/java/org/apache/commons/jexl3/internal/introspection/Permissions.java
index d6a134dd..90574151 100644
---
a/src/main/java/org/apache/commons/jexl3/internal/introspection/Permissions.java
+++
b/src/main/java/org/apache/commons/jexl3/internal/introspection/Permissions.java
@@ -237,7 +237,7 @@ public class Permissions implements JexlPermissions {
/**
* The no-restriction introspection permission singleton.
*/
- public static final Permissions UNRESTRICTED = new Permissions();
+ static final Permissions UNRESTRICTED = new Permissions();
/**
* @return the packages
diff --git
a/src/main/java/org/apache/commons/jexl3/introspection/JexlPermissions.java
b/src/main/java/org/apache/commons/jexl3/introspection/JexlPermissions.java
index 565f07d3..eb96eb86 100644
--- a/src/main/java/org/apache/commons/jexl3/introspection/JexlPermissions.java
+++ b/src/main/java/org/apache/commons/jexl3/introspection/JexlPermissions.java
@@ -183,7 +183,7 @@ public interface JexlPermissions {
* <p>This enables any public class, method, constructor or field to be
visible to JEXL and used in scripts.</p>
* @since 3.3
*/
- JexlPermissions UNRESTRICTED = Permissions.UNRESTRICTED;
+ JexlPermissions UNRESTRICTED = JexlPermissions.parse(null);
/**
* A restricted singleton.
* <p>The RESTRICTED set is built using the following allowed packages and
denied packages/classes.</p>