PicoContainer
  1. PicoContainer
  2. PICO-226

pico.registerComponentInstance(pico) gives incorrect error msg

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      1.1 src from 2004-11-04
    • Number of attachments :
      0

      Description

      This code:

      MutablePicoContainer pico = new DefaultPicoContainer();
      pico.registerComponentInstance(pico);

      gives this error:

      org.picocontainer.PicoRegistrationException: Cannot register a container to itself.
      The container is already implicitly registered.

      This is incorrect. The container is not already implicitly registered.

        Activity

        Hide
        Aslak Hellesøy added a comment -

        Fixed by paul yesterday

        Show
        Aslak Hellesøy added a comment - Fixed by paul yesterday
        Aslak Hellesøy made changes -
        Field Original Value New Value
        Assignee Paul Hammant [ paul ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.2 [ 11330 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: