ZKUI 0.5.7 with grails 2.3.11

66 views
Skip to first unread message

asferion

unread,
Oct 29, 2014, 12:23:00 PM10/29/14
to zk-ui...@googlegroups.com
Hi,

When in install ZKUI 0.5.7 with grails 2.3.11, i fall on this error message

Compilation error: startup failed:
C:\GRAILS-2.3.11\apps\contact\target\work\plugins\zkui-0.5.7\src\groovy\org\grails\plugins\zkui\scaffolding\ZkGrailsTemplateGenerator.groovy: 21: Can't have an abstract method in a non-abstract class. The class 'org.grails.plugins.zkui.scaffolding.ZkGrailsTemplateGenerator' must be declared abstract or the method 'void generateRestfulTest(org.codehaus.groovy.grails.commons.GrailsDomainClass, java.lang.String)' must be implemented.
 @ line 21, column 1.
   class ZkGrailsTemplateGenerator implements GrailsTemplateGenerator, ResourceLoaderAware, PluginManagerAware {
   ^
C:\GRAILS-2.3.11\apps\contact\target\work\plugins\zkui-0.5.7\src\groovy\org\grails\plugins\zkui\scaffolding\ZkGrailsTemplateGenerator.groovy: 21: Can't have an abstract method in a non-abstract class. The class 'org.grails.plugins.zkui.scaffolding.ZkGrailsTemplateGenerator' must be declared abstract or the method 'void generateRestfulController(org.codehaus.groovy.grails.commons.GrailsDomainClass, java.lang.String)' must be implemented.
 @ line 21, column 1.
   class ZkGrailsTemplateGenerator implements GrailsTemplateGenerator, ResourceLoaderAware, PluginManagerAware {
   ^
2 errors

You said on this issue that this bug is fixed on 0.5.7 https://github.com/xiaochong/zkui/issues/126

Is it the version of grails ? what last version is OK ? 2.3.2 ? 2.3.4 ? 2.3.5 ....
Thanks in advance


niro...@gmail.com

unread,
Jan 15, 2015, 3:19:45 PM1/15/15
to zk-ui...@googlegroups.com
Hi,

I just add

void generateRestfulTest(GrailsDomainClass domainClass, String destDir) throws IOException {
//do nothing
}
void generateRestfulController(GrailsDomainClass domainClass, String destDir) throws IOException {
//do nothing
}

at the end of the file "ZkGrailsTemplateGenerator.groovy" inside the projet folder.

Thanks

Nicolas
Reply all
Reply to author
Forward
0 new messages