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

InstantiationExceptions using new Configuration API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.1.0.CR3
    • 5.1.0.CR2
    • Configuration
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: