Map does support key values that are not String
-----------------------------------------------
Key: JBCACHE-496
URL:
https://issues.jboss.org/browse/JBCACHE-496
Project: JBoss Cache
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Legacy POJO Cache
Affects Versions: 1.2.4SP1
Environment: Suse Linux
Reporter: Scott Marlow (Novell)
Assignee: Scott Marlow
Fix For: 1.3.0.GA
Map hobbies = ...; // obtained from cache;
public void testLongValue() throws Throwable {
Long val = new Long("8225676592564383");
hobbies.put(val, "prateek");
// the following two calls will fail
assertTrue(hobbies.containsKey(val));
assertTrue(hobbies.get(val).equals("prateek"));
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: