Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.1-beta-2
-
Fix Version/s: 1.1-beta-2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
A NullPointerException is being thrown from custom subclasses of AbstractMap in the following scenario:
1) Class does not override Object get(Object key)
2) Method is called that uses a closure that references a class variable, instance variable, or property of the class
The attached test file duplicates the problem.
In the attached script I have tried extending AbstractMap, HashMap, and LinkedHashMap – all of which exhibited the same behavior unless get() was implemented. I also tried extending other classes, like AbstractList, Random, and Button, and implementing Map directly, but these worked.