groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iván López (JIRA) <j...@apache.org>
Subject [jira] [Created] (GROOVY-8973) groovy.lang.MissingPropertyException with GORM and Groovy 2.5.5
Date Mon, 28 Jan 2019 08:33:00 GMT
Iván López created GROOVY-8973:
----------------------------------

             Summary: groovy.lang.MissingPropertyException with GORM and Groovy 2.5.5
                 Key: GROOVY-8973
                 URL: https://issues.apache.org/jira/browse/GROOVY-8973
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 2.5.5
            Reporter: Iván López


Using GORM DataServices in Micronaut with Groovy 2.5.5 throws a {{MissingPropertyException}}.
This is probably because GORM is compiled with Groovy 2.4.x.

To reproduce the issue:
- {{git clone https://github.com/micronaut-projects/micronaut-examples}}
- {{cd micronaut-examples/petstore}}
- Use the following commit because forcing Groovy 2.5.1 fixes the issue, but no with latest
Groovy: 
- {{git checkout 8752b4ba8d8d9f30b65f12a872a02be130acc184}}
- {{./gradlew vendors:test --tests "example.vendors.VendorControllerSpec.test save vendor"}}

The exception is:

{code}
groovy.lang.MissingPropertyException: No such property: $validatedMethod0 for class: example.vendors.$VendorServiceImplementation
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:67)
	at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.getProperty(GetEffectivePogoPropertySite.java:87)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:309)
	at example.vendors.VendorService.findOrCreate(VendorService.groovy)
	at example.vendors.VendorService$findOrCreate.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at example.vendors.VendorController.save(VendorController.groovy:71)
{code}


Reported in this issue in Micronaut: https://github.com/micronaut-projects/micronaut-core/issues/1176



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message