[
https://issues.jboss.org/browse/ISPN-1675?page=com.atlassian.jira.plugin....
]
Galder Zamarreño updated ISPN-1675:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
InstantiationExceptions using new Configuration API
---------------------------------------------------
Key: ISPN-1675
URL:
https://issues.jboss.org/browse/ISPN-1675
Project: Infinispan
Issue Type: Bug
Components: Configuration
Affects Versions: 5.1.0.CR2
Reporter: Paul Ferraro
Assignee: Pete Muir
Fix For: 5.1.0.CR3
The following code fragments will cause an InstantiationException:
new DefaultCacheManager(new GlobalConfigurationBuilder().transport().transport(new
JGroupsTransport(channel)).build()).getCache();
new DefaultCacheManager(new
GlobalConfigurationBuilder().asyncTransportExecutor().factory(new
CustomExecutorFactory(executor)).build()).getCache();
Even though the new configuration API accepts object instances for these configuration
properties, they are expected to have no-arg constructors (since the old configuration API
relied on this mechanism), hence the InstantiationException.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira