groovy eclipse插件版本:1.7.5.xx-20101020-1000-e36-release。
import com.jidesoft.swing.JideSplitButton
@Grab(group='com.jidesoft', module='jide-oss', version='[2.2.1,2.3.0)')
public class TestClassAnnotation {
public static String testMethod () {
return JideSplitButton.class.name
}
}
new TestClassAnnotation().testMethod()
第一行错误:Groovy: 无法解析 com.jidesoft.swing.JideSplitButton 类
它可以作为 Groovy Shell 运行,但是错误警告很烦人。