Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
@TupleConstructor should not overwrite existing empty default constructors. For example, this should work, but doesn't currently
assert new Cat("Mr. Bigglesworth").name == null // fails @groovy.transform.TupleConstructor class Cat { String name int age Cat(String name) {} }
Granted, this is an edge case. But unexpected behavior, nonetheless.
Attachments
Issue Links
- relates to
-
GROOVY-10790 Immutable fails with defaults=true
- Closed