Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
None
-
Patch
Description
Section 6.4.1 of the beans sepc specifically allows for event listener methods that do not follow the standard JavaBeans pattern of having only one argument that is a sub-type of java.util.EventObject. It takes some BeanInfo magic to create such an event method that registers via introspection, but it can be done.
When the event is actually fired something like the following exception is produced
Caught: groovy.lang.MissingMethodException: No signature of method: CommandLine.doCall() is applicable for argument types: (java.lang.String) values:
at $Proxy0.somethingStrangeHappened(Unknown Source)
at gjdk.groovy.StrangeBean_GroovyReflector.invoke(Unknown Source)
at CommandLine.run(CommandLine.groovy:1)