Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-397

Dynamic proxy should not require specific permission

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3
    • 3.4.0
    • 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.

      Attachments

        Activity

          People

            henrib Henri Biestro
            henrib Henri Biestro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: