Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1556

Bundle.getResource/s is not able to find resources if the package is not alraedy wired when I use DynamicImport-Package: *

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • framework-1.8.1
    • framework-2.0.0
    • Framework
    • None
    • generic

    Description

      This appears to be a serious bug. While running GlassFish on Felix 1.8.1 and on a latest build off trunk, I see the following:
      I have a bundle which has DynamicImport-Package: *. I call bundle.getResources("foo/Bar.class") and it does not find the resource even if there exists a unique bundle which exports package foo and has a resource foo/Bar.class. If I call bundle.loadClass("foo.Bar"), it finds the class. I also see a WIRE being setup between the importer and exporter for package foo. Subsequently, getResource also works.

      Attachments

        Activity

          People

            rickhall Richard S. Hall
            sahoo Sanjeeb Kumar Sahoo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: