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

MyEnum.values() bombs out on AppEngine

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.8.1, 1.9-beta-1
    • Component/s: None
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              Guillaume Guillaume Delcroix
              Reporter:
              axel.fontaine Axel Fontaine
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: