为什么当我在这个 GroovyShell 中创建一个新类时什么都没有发生?
GroovyShell shell = new GroovyShell();
String a = "class ReportFrame$id{}; new ReportFrame$id();";
shell.evaluate(a);
为什么当我在这个 GroovyShell 中创建一个新类时什么都没有发生?
GroovyShell shell = new GroovyShell();
String a = "class ReportFrame$id{}; new ReportFrame$id();";
shell.evaluate(a);