2
Warum folgende groovy Code eine Ausnahme auslösen: groovy.lang.MissingMethodException: No signature of method
.wie groovy.lang.MissingMethodException zu beheben: Keine Signatur der Methode
Ich bin der neue Typ für groovy, kann mir jeder Körper helfen?
def b = {->
c()
}
def c={ ->
true
}
b()
Stracktrace ist
groovy.lang.MissingMethodException: No signature of method: Script1.c() is applicable for argument types:() values: []
Possible solutions: a(), is(java.lang.Object), run(), run(), any(), any(groovy.lang.Closure)<i>
at Script1$_run_closure1.doCall(Script1.groovy:7)
at Script1.run(Script1.groovy:14)
Danke, das das Problem. – Huabei