commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Vandahl (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JCS-102) JCS.getGroupKeys() always triggers a\ ClassCastException
Date Mon, 06 Jan 2014 17:21:52 GMT

     [ https://issues.apache.org/jira/browse/JCS-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Vandahl resolved JCS-102.
--------------------------------

    Resolution: Fixed

Fixed in SVN

> 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.0
>            Reporter: Robert Clark
>            Assignee: Thomas Vandahl
>             Fix For: jcs-2.0.0
>
>
> 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.1.5#6160)

Mime
View raw message