Uploaded image for project: 'Spring.NET'
  1. Spring.NET
  2. SPRNET-1520

Autowired into Spring.Collections.Generic.ISet does not work, Exceptions shows that abstract class Set can't be intantiated

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.2, 2.0 M1
    • Fix Version/s: 2.0 M2
    • Component/s: Spring-NET-CORE
    • Labels:
      None

      Description

      In Class Spring.Core.TypeConversion.TypeConverterUtils the conversion if ISet tries to instantiate the the Set<> collection, see line 102:

      ToTypedCollectionWithTypeConversion(typeof(Spring.Collections.Generic.Set<>), componentType, elements, propertyName);

      The class is an abstract class and can't be instatiated. Changing it to HashedSet<> makes it working.

        Attachments

          Activity

            People

            • Assignee:
              sbohlen Steve Bohlen
              Reporter:
              thomast74 Thomas Trageser
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: