[
https://issues.jboss.org/browse/ISPN-1421?page=com.atlassian.jira.plugin....
]
Manik Surtani edited comment on ISPN-1421 at 9/27/11 10:39 AM:
---------------------------------------------------------------
*Flags and ClassLoaders*
Flags and ClassLoaders API has changed. In the past, the following would work:
{code}
cache.withFlags(f1, f2);
cache.withClassLoader(cl);
cache.put(k, v);
{code}
In 5.1.0, these withX() methods return a new instance and not the cache itself, so thread
locals are avoided and the code above will not work. If used in a fluent manner however,
things still work:
{code}
cache.withFlags(f1, f2).withClassLoader(cl).put(k, v);
{code}
The above pattern has always been the intention of this API anyway.
was (Author: manik):
Flags and ClassLoaders API has changed. In the past, the following would work:
{code}
cache.withFlags(f1, f2);
cache.withClassLoader(cl);
cache.put(k, v);
{code}
In 5.1.0, these withX() methods return a new instance and not the cache itself, so thread
locals are avoided and the code above will not work. If used in a fluent manner however,
things still work:
{code}
cache.withFlags(f1, f2).withClassLoader(cl).put(k, v);
{code}
The above pattern has always been the intention of this API anyway.
Put together a migrate to Infinispan 5.1 document
-------------------------------------------------
Key: ISPN-1421
URL:
https://issues.jboss.org/browse/ISPN-1421
Project: Infinispan
Issue Type: Task
Affects Versions: 5.0.0.FINAL
Reporter: Manik Surtani
Assignee: Pete Muir
Labels: docs
Fix For: 5.1.0.CR1, 5.1.0.FINAL
Please use this JIRA to list all incompatibilies and potential problems people may have
migrating from 4.x or 5.0.x to 5.1.x.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira