[infinispan-issues] [JBoss JIRA] (ISPN-1675) InstantiationExceptions using new Configuration API
Paul Ferraro (Created) (JIRA)
jira-events at lists.jboss.org
Thu Jan 5 13:51:09 EST 2012
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: Manik Surtani
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
More information about the infinispan-issues
mailing list