Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 1.8.x
-
Component/s: None
-
Labels:None
-
Environment:Grails 2.0 RC1/2/3 Mac OS X Lion, Java 1.6.0_29
-
Number of attachments :
Description
Since upgrading to Grails 2 which brings a newer release of groovy compared to grails 1.3.7 we started getting the error:
groovy.lang.MissingPropertyException: No such property: param0
...inside some of our tests.
If you look at the code causing this:
... you can see there is code copying "this" to a local var "c" and then on the line that fails "this.ident()" is used. This causes the "bad bytecode". If you change it to "c.ident()" it works.
"But how can reproduce this?!" I hear you ask enthusiastically.
The answer: https://github.com/jCatalog/weceem-plugin
Check out the code, then grails test-app using Grails 2 RC2 or higher.
Open the test reports in ./target/test-reports/html/index.html
Many tests fail due to other changes in Grails, but the test you are interested in is "SecurityServiceTests"
I just cloned weceem-plugin and ran the tests with Grails RC3 and got no failures on SecurityServiceTests. All its 4 tests passed for me.