Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.7.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Win XP on AMD Turin 64, Eclipse Galileo, Sun Java VM 6u17
-
Testcase included:yes
-
Number of attachments :
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.
Issue Links
- duplicates
-
GROOVY-4016
Single super constructor argument is casted to array if super constructor has vararg parameter
-
Activity
Roshan Dawrani
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Link |
This issue duplicates |
Paul King
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Duplicate [ 3 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
This issue is a duplicate of
GROOVY-4016.