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

Spring.Core getallassembies failed if the type is not loaded

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0 M1
    • Fix Version/s: None
    • Component/s: Spring-NET-CORE
    • Labels:

      Description

      if the first time that a type is resolved, it is used without the assembly name (i.e. it is the type for a list), since the type is not in the load assemblies, the resolve type fails.

      Example:
      <object name="Test" type="Test.TypedType<OtherAssembly.OtherType>, Test" />

      since OtherAssembly.OtherType is used without the assembly name and it has not been instianted before, LoadTypeByIteratingOverAllLoadedAssemblies method fails because the assembly of OtherType is not in the current domain so when Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); is executed OtherAssembly is not in assemblies collection.

        Attachments

          Activity

            People

            • Assignee:
              sbohlen Steve Bohlen
              Reporter:
              vpazos VerĂ³nica Pazos
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: