Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.3
-
None
Description
With the default restricted permissions, dynamic proxies can not be introspected since they extend java.lang.reflect.Proxy whose package is denied.
A workaround is to explicitly allow them as in:
JexlPermissions p = new JexlPermissions.Delegate(JexlPermissions.RESTRICTED) { @Override public boolean allow(Class<?> clazz) { return Proxy.isProxyClass(clazz) || super.allow(clazz); } };
This workaround should not be necessary.