javax.naming is a JCP-controlled API. Adding to it would require a maintenance release of whichever JSR covers JNDI (probably the Java EE umbrella JSR.) You'll need to track down the spec lead and see if a MR is in the works, and if you can convince them that this is a desirable addition.

On 10/13/2016 1:14 PM, Laird Nelson wrote:
Hello; I am new to this mailing list and its conventions; if I misstep I am
happy to be pointed in the right direction.  I was directed here by Mark

Disclaimer in case it matters: I work for Oracle.

I have long wanted there to be methods in javax.naming.Context like the

// typed from memory off the cuff
default <T> T lookup(final String name, final Class<T> type) {
   return type.cast(this.lookup(name));
// do similar things for other lookup* methods here

What would be the steps I would next need to take to help with this?

Thanks in advance for help, time and guidance,

Reply via email to