Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Information Provided
-
1.8.4
-
None
-
None
-
Windows 7
Description
While using a category I stumbled upon the following misbehaviour:
class SomeCategory { static def method(String self, def val) { self + val } } use(SomeCategory) { // should throw a MissingMethodException but calls method() with null as param assert "foo".method() == "foonull" }
I expected a MissingMethodException because a parameterless method doesn't exist.
Am I wrong?