--- old/src/java.naming/share/classes/com/sun/jndi/toolkit/url/GenericURLContext.java 2015-05-18 19:55:03.004747425 +0400 +++ new/src/java.naming/share/classes/com/sun/jndi/toolkit/url/GenericURLContext.java 2015-05-18 19:55:02.848747425 +0400 @@ -107,12 +107,14 @@ * the subclass must override getURLSuffix() to get the correct behavior. * Remember, the behavior must match getRootURLContext(). * + *
{@code * URL Suffix * foo://host:port*/ protected Name getURLSuffix(String prefix, String url) throws NamingException { String suffix = url.substring(prefix.length());* foo://host:port/rest/of/name rest/of/name * foo:///rest/of/name rest/of/name * foo:/rest/of/name rest/of/name * foo:rest/of/name rest/of/name + * }