[
http://jira.jboss.com/jira/browse/JBCACHE-885?page=comments#action_12348277 ]
Ben Wang commented on JBCACHE-885:
----------------------------------
Just tried it with 1.2.4 as well in the cluster training using BSH. It works for me as:
long[] arr = new long[2];
arr[0] = 1;
arr[1] = 2;
cache.putObject("arr", arr);
without errors. Is
long arr = new long[]{1,2};
a typo from you?
Looking at the code, I don't see why it'd fail either since long[] should be
considered Serializable so no exception should be thrown.
Since 1.4.1 is releasing soon, I will move this out first since the unit test passes
there.
Bug when calling putObject() with array as argument
---------------------------------------------------
Key: JBCACHE-885
URL:
http://jira.jboss.com/jira/browse/JBCACHE-885
Project: JBoss Cache
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: PojoCache
Reporter: Bela Ban
Assigned To: Ben Wang
Fix For: 1.4.1.GA, 2.0.0.ALPHA2
Should at least not lead to an exception, we could for example state that we don't
support arrays yet.
To reproduce:
TreeCacheAop cache;
long arr=new long[]{1,2};
cache.putObject("arr", arr);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira