Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.7, 1.6-beta-2
-
Fix Version/s: 1.6-rc-1, 1.5.8, 1.7-beta-1
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
Trying to implement a member function with the same name but different parameter signature and using super to call the parent's implementation is blocked by having a static method of the same name with a Closure parameter.
This may not be really about Closure and/or Script because a similar (but different) error if there is a static method with a different parameter type.
Ah, well the test works better when it doesn't have syntax errors.
Java does indeed allow static functions with the same name as a member in the parent (which is the way I thought it worked!).