简体   繁体   中英

Error PayPal plugin on grails 2.0.0.RC3

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM