groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iván López (JIRA) <>
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
             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}}
- {{cd micronaut-examples/petstore}}
- Use the following commit because forcing Groovy 2.5.1 fixes the issue, but no with latest
- {{git checkout 8752b4ba8d8d9f30b65f12a872a02be130acc184}}
- {{./gradlew vendors:test --tests "example.vendors.VendorControllerSpec.test save vendor"}}

The exception is:

groovy.lang.MissingPropertyException: No such property: $validatedMethod0 for class: example.vendors.$VendorServiceImplementation
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(
	at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.getProperty(
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(
	at example.vendors.VendorService.findOrCreate(VendorService.groovy)
	at example.vendors.VendorService$ Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(

Reported in this issue in Micronaut:

This message was sent by Atlassian JIRA

View raw message