Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.7.0
-
None
-
None
-
None
-
Win XP on AMD Turin 64, Eclipse Galileo, Sun Java VM 6u17
Description
I have attached a test case demonstrating this bug:
class First declares a Constructor with var args string parameter
class Second inherits this and declares a new constructor, which super-calls the var-args constructor with two strings (should work, since the original constructor can be called with two strings).
however, the super-call throws a class cast exception because at some point groovy tries to cast one of the Strings to a String array, which of course is not possible.
Attachments
Attachments
Issue Links
- duplicates
-
GROOVY-4016 Single super constructor argument is casted to array if super constructor has vararg parameter
- Closed