commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Clark (JIRA)" <>
Subject [jira] [Created] (JCS-102) JCS.getGroupKeys() always triggers a\ ClassCastException
Date Sun, 23 Dec 2012 21:44:12 GMT
Robert Clark created JCS-102:

             Summary: JCS.getGroupKeys() always triggers a\ ClassCastException
                 Key: JCS-102
             Project: Commons JCS
          Issue Type: Bug
          Components: Composite Cache
    Affects Versions: jcs-2.0.0
            Reporter: Robert Clark

Using SVN version build Dec 20, 2012:

This code:

JCS<Long, String> jcs = JCS.getInstance("the region");
jcs.getGroupKeys("the group");
jcs.putInGroup(Long.valueOf(1), "the group", "some value");
jcs.getGroupKeys("the group");

will trigger an exception on the *second* getGroupKeys() call (when there is actually something
in the cache)

Exception in thread "main" java.lang.ClassCastException: java.lang.Long cannot be cast to
     [java] 	at org.apache.jcs.access.GroupCacheAccess.getGroupKeys(
     [java] 	at my.sample.code.Main.main(

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message