Jboss Cache 2 integration is totally broken
-------------------------------------------
Key: JBSEAM-4016
URL:
https://jira.jboss.org/jira/browse/JBSEAM-4016
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.1.1.GA
Reporter: Stuart Douglas
JbossCache2Provider does not work. The following code is wrong:
GET = Cache.class.getDeclaredMethod("get", Fqn.class, String.class);
PUT = Cache.class.getDeclaredMethod("put", Fqn.class, String.class,
Object.class);
REMOVE = Cache.class.getDeclaredMethod("remove", Fqn.class, String.class);
REMOVE_NODE = Cache.class.getDeclaredMethod("removeNode", Fqn.class);
The method signatures are wrong, and a MethodNotFoundException will be thrown. The code
should read:
GET = Cache.class.getDeclaredMethod("get", Fqn.class, Object.class);
PUT = Cache.class.getDeclaredMethod("put", Fqn.class, Object.class,
Object.class);
REMOVE = Cache.class.getDeclaredMethod("remove", Fqn.class, Object.class);
REMOVE_NODE = Cache.class.getDeclaredMethod("removeNode", Fqn.class);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira