dm Server Tools
  1. dm Server Tools
  2. DMST-67

BundleClasspathContainer: re-importing exported package causes build path problems

    Details

    • Type: Defect Defect
    • Status: Done Done
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 2.0.0.RC1
    • Labels:
      None

      Description

      I have a project with spring and bundle nature with a BundleClasspathContainer.
      I have a bundle that, as is often recommended, exports and re-imports a package p, so in the Manifest of the bundle I have the lines:
      ...
      Export-Package: p
      Import-Package: p
      ...

      Upon change of the Manifest, the BundleClasspathContainer will pick up a dependency of the project on itself and the Spring IDE/dm Server tools report build path problems.

      "Project x cannot reference itself" and
      "A cycle was detected in the build path of project x".

      Other than disabling the BundleClasspathContainer there does not seem to be a way to re-import an exported package. However, since re-importing packages is allowed and an OSGi best practice, this should not cause errors.

      I am using Eclipse 3.4.1 with Spring IDE 2.2.2 and dm Server Tools 1.1.3. Updating to 2.0.0.M1 did not help.

        Activity

        Hide
        Christian Dupuis added a comment -

        This has been fixed

        Show
        Christian Dupuis added a comment - This has been fixed

          People

          • Assignee:
            Unassigned
            Reporter:
            Andreas R.
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: