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

Set parent classloader of bundle classloader to be same as what is actually used for delegation

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      Refer to a previous discussion in dev alias:
      http://mail-archives.apache.org/mod_mbox/felix-users/200804.mbox/%3c487a994c0804010552n35fc44eew34b34a1795e14d6f@mail.gmail.com%3e

      Currently, although Felix uses the classloader that loads Felix classes as the parent class loader for delegation, it actually sets system class loader as the parent (ClassLoader.getParent()). It is because when it creates a class loader, it does not set any parent, hence the default value is used. The fix should be particularly simple. e.g., get hold of a Felix framework class and use its classloader as the parent.

      Attachments

        1. FELIX-1190.txt
          0.6 kB
          Richard S. Hall

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment