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

MyEnum.values() bombs out on AppEngine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.8.0
    • 1.8.1, 1.9-beta-1
    • None
    • None
    • AppEngine Java 1.5

    Description

      Calling MyEnum.values() works great on the AppEngine local development server, but once this code runs in production you get:

      java.lang.IllegalAccessException: Reflection is not allowed on protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException
      	at com.google.appengine.runtime.Request.process-d87840548eba2c93(Request.java)
      	at java.lang.reflect.Method.invoke(Method.java:43)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1055)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:885)
      	at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:44)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
      	at MyEnum.values(Environment.groovy)
      	at MyEnum$values.call(Unknown Source)
      

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            axel.fontaine Axel Fontaine
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: