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

Support autocloseable for javax.naming.Context

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P4
    • tbd
    • 6
    • core-libs

    Description

      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);

          }

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: