-
Bug
-
Resolution: Done
-
Major
-
5.1.0.CR2
-
None
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.