简体   繁体   English

Grails 2.0.0.RC3上的PayPal插件出错

[英]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: 我使用grails 2.0.0.rc3,当我安装PayPal插件时出现此错误:

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!! grails 2.0中的不兼容性变化!! It seems that it is related to a small change in grails 2.0. 它似乎与grails 2.0的微小变化有关。

It is now possible to define controller actions as methods instead of using closures as in previous versions of Grails. 现在可以将控制器操作定义为方法,而不是像以前版本的Grails中那样使用闭包。 (from official doc : http://grails.org/doc/2.0.x/guide/introduction.html#webFeatures ) (来自官方文档: http//grails.org/doc/2.0.x/guide/introduction.html#webFeatures

It behaves like the closure notify in PaypalController overrides the Object.notify method. 它的行为类似于PaypalController中的闭包通知,它会覆盖Object.notify方法。 If you rename notify in notifyPaypal, it should work. 如果你在notifyPaypal中重命名通知,它应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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