Process to add some default methods to javax.naming.Context?

Laird Nelson ljnelson at
Fri Oct 14 21:21:55 UTC 2016

On Fri, Oct 14, 2016 at 7:19 AM Vincent Ryan <vincent.x.ryan at>

> The problem of having to cast the result of Context.lookup
> <> can
> be solved using an existing method:
>     InitialContext.doLookup
> <>

That solves the simple casting problem from an initial Context, but not for
all Contexts, and the simple addition of a relatively trivial default
method like this in the Context interface it seems to me would open the
door for Context implementers to reimplement it to do more
sophisticated—and deliberate—type conversion.


More information about the core-libs-dev mailing list