Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6024

ExpandoMetaClassCreationHandle.disable() doesn't prevent the dynamically compiled scripts from altering the core application class behaviour

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.0, 2.0.1
    • None
    • GroovyScriptEngine
    • None

    Description

      We're using Groovy 2.0.1 and we tried the following code snippet which gets called before instantiating the GSE.

      ExpandoMetaClassCreationHandle handle = new ExpandoMetaClassCreationHandle();
      GroovySystem.getMetaClassRegistry().setMetaClassCreationHandle(handle);
      ExpandoMetaClassCreationHandle.disable();

      The desired behaviour is to prevent the dynamically compiled scripts from altering the core application class behaviour.

      Attachments

        Activity

          People

            Unassigned Unassigned
            elanglais Eric Langlais
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: