Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7057061

Support autocloseable for javax.naming.Context

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 6
    • 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);

          }

            darcy Joe Darcy
            vinnie Vincent Ryan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: