[
https://issues.apache.org/jira/browse/JCS-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15002033#comment-15002033
]
Vinod Padmanabha Iyer commented on JCS-102:
-------------------------------------------
Sorry about this.. I found the mistake.. please ignore...
> JCS.getGroupKeys() always triggers a\ ClassCastException
> --------------------------------------------------------
>
> Key: JCS-102
> URL: https://issues.apache.org/jira/browse/JCS-102
> Project: Commons JCS
> Issue Type: Bug
> Components: Composite Cache
> Affects Versions: jcs-2.0-beta-1
> Reporter: Robert Clark
> Assignee: Thomas Vandahl
> Fix For: jcs-2.0-beta-1
>
>
> Using SVN version build Dec 20, 2012:
> This code:
> {code:java}
> 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");
> {code}
> will trigger an exception on the *second* getGroupKeys() call (when there is
> actually something in the cache)
> {noformat}
> Exception in thread "main" java.lang.ClassCastException: java.lang.Long
> cannot be cast to org.apache.jcs.engine.control.group.GroupAttrName
> [java] at
> org.apache.jcs.access.GroupCacheAccess.getGroupKeys(GroupCacheAccess.java:205)
> [java] at my.sample.code.Main.main(Main.java:108)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)