Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.19, 5.0.0-alpha-2, 4.0.15
-
None
-
None
Description
Consider the following:
abstract class A { abstract m(List list, String string) } class C extends A { @Override m(List list, String string) { print 'works' } } Object test(List list, String string) { list.tap { new C().m(it,string) } } test(null,"")
"list.tap{" propagates NullObject into closure and then method selection falls down.
Attachments
Attachments
Issue Links
- is related to
-
GROOVY-4526 NullObject paradoxes
-
- Closed
-
-
GROOVY-4985 null and .with{}
-
- Closed
-
-
GROOVY-6567 delegate is NullObject instance for closure metamethods invoked on null
-
- Closed
-
-
GROOVY-9367 org.codehaus.groovy.runtime.MetaClassHelper#getClassWithNullAndWrapper should return NullObject when accept null
-
- Closed
-