Details
Description
An instance method is not found from inner node of SwingBuilder:
class StaticTest {
static void main(args)
public StaticTest () {
def swing = new groovy.swing.SwingBuilder()
def myFrame = swing.frame(size:[100,50]) {
panel() {
button(text: "test", actionPerformed:
)
}
}
myFrame.visible = true
}
private testMethod()
{ println "test" }}
It gets visible if we:
1) remove panel(), and just place button in the form without panel
2) create a property in the class, assign 'this' to this property, and access the method via the property.
seems as the SwingBuilder violates the rule to ask the class at some point.
adding
throw new MissingMethodException((String)name,getClass(),new Object[0]);
to line 403 of Swingbuilder would fix the case above