Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error PayPal plugin on grails 2.0.0.RC3

Tags:

grails

I use grails 2.0.0.rc3, when I install PayPal plugin I have this error:

Error Compilation error: startup failed:
/Users/sartre/.grails/2.0.0.M1/projects/testapp/plugins/paypal-0.6.4/grails-app/controllers/org/grails/paypal/PaypalController.groovy: -1: The return type of java.lang.Object notify() in org.grails.paypal.PaypalController is incompatible with void notify() in java.lang.Object
. At [-1:-1] @ line -1, column -1.
1 error

How can I fix it?

Many thanks for any idea

like image 281
miky91 Avatar asked Dec 06 '25 20:12

miky91


1 Answers

Incompatibility change in grails 2.0!! It seems that it is related to a small change in grails 2.0.

It is now possible to define controller actions as methods instead of using closures as in previous versions of Grails. (from official doc : http://grails.org/doc/2.0.x/guide/introduction.html#webFeatures)

It behaves like the closure notify in PaypalController overrides the Object.notify method. If you rename notify in notifyPaypal, it should work.

like image 186
yonteit Avatar answered Dec 09 '25 20:12

yonteit