Error PayPal plugin on grails 2.0.0.RC3

≯℡__Kan透↙ 提交于 2020-01-04 05:08:08

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/8492661/error-paypal-plugin-on-grails-2-0-0-rc3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!