<< Back to previous view

[CLJ-780] race condition in reference cache on Java 5 Created: 27/Apr/11  Updated: 01/Mar/13  Resolved: 27/Apr/11

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: None
Fix Version/s: Release 1.3

Type: Defect Priority: Major
Reporter: Stuart Halloway Assignee: Stuart Halloway
Resolution: Completed Votes: 0
Labels: None

Attachments: Text File check-map-entry-value.patch    
Patch: Code
Approval: Ok

 Description   

Map.Entry instances can have null values prior to Java 6

Test failure: http://build.clojure.org/job/test.generative/1/org.clojure$test.generative/console

Discussion: http://concurrency.markmail.org/message/pbruo2uxgur6wkoo?q=map%2Eentry+null&page=3#query:map.entry%20null+page:3+mid:z5arnbbzl2k32jda+state:results

Note that the fix must hold val in a local variable, because cache.remove will bomb if the value is null.


Generated at Tue Sep 02 12:12:03 CDT 2014 using JIRA 4.4#649-r158309.