[
http://jira.jboss.com/jira/browse/JBCACHE-251?page=all ]
Ben Wang resolved JBCACHE-251.
------------------------------
Resolution: Done
Assignee: Ben Wang (was: Manik Surtani)
In 1.4 we have construct the new Fqn directly, so this should be a non-issue anymore.
Cached map uses toString() of key to create FQN
-----------------------------------------------
Key: JBCACHE-251
URL:
http://jira.jboss.com/jira/browse/JBCACHE-251
Project: JBoss Cache
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 1.2.3
Reporter: twundke
Assigned To: Ben Wang
Fix For: 2.0.0
Time Spent: 15 minutes
Remaining Estimate: 0 minutes
The cached map adds values to the cache by creating a child FQN as follows:
new Fqn(getFqn(), key);
or, more recently, AopUtil.constructFqn(getFqn(), key);
This ultimately calls toString() on the key object when the FQN is converted to a string
representation. However, toString() should not have to be written to give a meaningful
value to the cache in this instance. A well-written toString() will most likely produce
very cache-unfriendly FQNs.
A better option is to convert the key object into an internal representation using
hashcode(), similar to the default Object.toString() implementation.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira