Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1675

InstantiationExceptions using new Configuration API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.1.0.CR3
    • 5.1.0.CR2
    • Configuration
    • 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.

              pmuiratbleepbleep Pete Muir (Inactive)
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: