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

ContextProvider incorrectly closes Context when GCed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.3
    • 0.3
    • None
    • None

    Description

      If I do the following:

      Context ctx = new InitialContext().lookup("")

      the ContextProvider becomes eligible for GC and if finalize is called will close the context which is still reachable.

      Fix is to remove the finalize method.

      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: