Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.6-rc-2
-
Fix Version/s: 1.6-rc-3
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
This issue is critical, we either need to revert to the original behavior or find a solution that supports the new behavior whilst not breaking specialized collection types like those used in Hibernate
I propose to change DefaultGroovyMethodsSupport.createCollectionFromClass and createMapFromClass to be more selective about the classes that they try the "instance's class constructor" scheme on. For starters they will be limited to java.util.AbstractCollection and java.util.AbstractMap respectively.
Java 1.5 classes that implement java.util.Collection but do not extend java.util.AbstractCollection:
Java 1.5 classes that implement java.util.Map but do not extend java.util.AbstractMap:
It may make sense to extend the methods to some (all?) of these.