PicoContainer
  1. PicoContainer
  2. PICO-311

FactoryInjectors are passed the wrong 'into' reference every time.

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.9
    • Component/s: None
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      2

      Description

      Test-Driven is one thing, but without pairing its imperfect. A pairing partner would have picked up this obvious error in the testcase

      The FactoryInjector subclass is a neat design, but the Type that is passed in to the method you have to implement is not the type of the class you would be injecting into. Instead it is the type of the required class (which is useless).

      1. 311.patch
        29 kB
        Paul Hammant
      2. bug.patch
        1 kB
        Paul Hammant

        People

        • Assignee:
          Paul Hammant
          Reporter:
          Paul Hammant
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: