Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-481

BlueprintEvent may mutate after creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.2
    • 0.3, blueprint-0.2.1
    • Blueprint
    • None

    Description

      Running findbugs on the org.osgi.service.blueprint package results in the
      following error:

      org.osgi.service.blueprint.container.BlueprintEvent(int, Bundle, Bundle,
      String[], Throwable) may expose internal representation by storing an
      externally mutable object into BlueprintEvent.dependencies MALICIOUS_CODE
      EI_EXPOSE_REP2 229 Medium

      I think the worst that can happen is that if the BlueprintContainer
      implementation changed the dependencies array it passes to the extender two
      different event handlers could see different dependencies.

      Attachments

        Activity

          People

            not Alasdair Nottingham
            not Alasdair Nottingham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: