Support autocloseable for javax.naming.Context

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • tbd
    • Affects Version/s: 6
    • Component/s: core-libs

      Add support for AutoCloseable to javax.naming.Context.
      Will enable the use of try-with-resourses constructs, for example:

          try (DirContext ctx = new InitialDirContext(env)) {
              NamingEnumeration<SearchResult> answer =
                  ctx.search("ou=People,o=JNDITutorial", "(objectClass=*)", null);

          }

            Assignee:
            Joe Darcy
            Reporter:
            Vincent Ryan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: