<< Back to previous view

[CMEMOIZE-13] Reflection warning in clojure.core.memoize/snapshot Created: 14/Jan/14  Updated: 20/Mar/14

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

Type: Defect Priority: Trivial
Reporter: Miikka Koskinen Assignee: Fogus
Resolution: Unresolved Votes: 1
Labels: None
Environment:

core.memoize 0.5.6, Clojure 1.5.1


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

 Description   

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.


 Comments   
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

Generated at Wed Aug 20 11:33:20 CDT 2014 using JIRA 4.4#649-r158309.