<< Back to previous view

[CMEMOIZE-13] Reflection warning in clojure.core.memoize/snapshot Created: 14/Jan/14  Updated: 12/Nov/14  Resolved: 12/Nov/14

Status: Closed
Project: core.memoize
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Trivial
Reporter: Miikka Koskinen Assignee: Unassigned
Resolution: Completed Votes: 2
Labels: None

core.memoize 0.5.6, Clojure 1.5.1

Attachments: Text File cmemoize-13-v1.patch    
Patch: Code


When core.memoize is used with *warn-on-reflection* set to true:

Reflection warning, clojure/core/memoize.clj:72:23 - reference to field cache can't be resolved.

Comment by Andy Fingerhut [ 20/Mar/14 6:49 PM ]

Patch cmemoize-13-v1.patch eliminates the reflection in fn snapshot by type-hinting the value of @cache

Comment by Alex Miller [ 12/Nov/14 8:13 AM ]

Applied patch

Generated at Tue Sep 26 16:36:34 CDT 2017 using JIRA 4.4#649-r158309.