You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Deepan Thavarajah (JIRA)" <ji...@apache.org> on 2015/09/02 21:14:45 UTC

[jira] [Created] (GROOVY-7575) Using SecureASTCustomizer doesn't allow creation of new classes, named or anonymous

Deepan Thavarajah created GROOVY-7575:
-----------------------------------------

             Summary: Using SecureASTCustomizer doesn't allow creation of new classes, named or anonymous
                 Key: GROOVY-7575
                 URL: https://issues.apache.org/jira/browse/GROOVY-7575
             Project: Groovy
          Issue Type: Bug
            Reporter: Deepan Thavarajah
            Priority: Minor


When using SecureASTCustomizer, if you use it to compile a groovy file with new class declarations in it (while using the receiverswhitelist), you will receive exceptions like this "Method calls now allowed on [Script1$1]". 

There should be a switch or a way to configure the SecureASTCustomizer to allow new classes to be defined within the script. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)