-
Enhancement
-
Resolution: Won't Fix
-
P4
-
6
-
generic
-
generic
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);
}
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);
}
- relates to
-
JDK-6911261 Project Coin: Retrofit Automatic Resource Management (ARM) support onto platform APIs
- Closed
-
JDK-6963723 Project Coin: Retrofit more JDK classes for ARM
- Closed