Mandy Chung wrote:
The JNDI cosnaming provider currently has a static dependency on
java.applet.Applet that is only needed in an applet environment. This
fix will allow JNDI cosnaming provider to be used when java.applet is
not present.
Webrev:
http://cr.openjdk.java.net/~mchung/6898747/webrev.00/
Mandy - what is the existing behavior for when the environment property
is null or a non-Applet type? I don't know the COS Naming Service
Provider but I assume it will throw CCE if the property value is not an
Applet. With the proposed change it looks like it will throw an
AssertionError if the module containing Applet is not installed. If not
installed it means the value cannot be an Applet so you could thrown
whatever exception is thrown today. Minor comment is that you can
probably replace "java.naming.applet" with Context.APPLET.
-Alan.