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

Groovy/Grails Joint Build: The 'field' metaClass is declared multiple times problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.6-beta-2
    • 1.6-beta-2
    • class generator
    • None

    Description

      The Groovy/Grails joint build for Groovy 1.6 is currently failing to compile with the error:

      26-May-2008 09:03:05  	     [exec]   [groovyc]  @ line 51, column 5.
      26-May-2008 09:03:05 	     [exec]   [groovyc]        private transient MetaClass metaClass;
      26-May-2008 09:03:05 	     [exec]   [groovyc]        ^
      26-May-2008 09:03:05 	     [exec]   [groovyc] /opt/j2ee/domains/ci.codehaus.org/bamboo/webapps/atlassian-bamboo/data/atlassian-bamboo-2.0/xml-data/build-dir/GRAILS-GROOVYGRAILS/checkout/grails/src/groovy/org/codehaus/groovy/grails/webflow/engine/builder/FlowBuilder.groovy: 76: The field 'metaClass' is declared multiple times.
      26-May-2008 09:03:05 	     [exec]   [groovyc]  @ line 76, column 5.
      26-May-2008 09:03:05 	     [exec]   [groovyc]        private MetaClass metaClass
      26-May-2008 09:03:05 	     [exec]   [groovyc]        ^
      26-May-2008 09:03:05 	     [exec]   [groovyc]
      26-May-2008 09:03:05 	     [exec]   [groovyc] 2 errors
      26-May-2008 09:03:05 	     [exec]
      26-May-2008 09:03:05 	     [exec] BUILD FAILED
      26-May-2008 09:03:05 	     [exec] /opt/j2ee/domains/ci.codehaus.org/bamboo/webapps/atlassian-bamboo/data/atlassian-bamboo-2.0/xml-data/build-dir/GRAILS-GROOVYGRAILS/checkout/grails/ant/build/compile.xml:24: Compilation Failed
      

      It seems that the compiler is incorrectly generated to private metaClass fields even when one is already declared. See http://bamboo.ci.codehaus.org/browse/GRAILS-GROOVYGRAILS-118/log for more info

      Attachments

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              graemerocher Graeme Rocher
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: