Code Review Request for 6578042
neil.richards at ngmr.net
Mon Nov 14 18:43:33 PST 2011
On Mon, 2011-11-14 at 13:45 +0000, Alan Bateman wrote:
> On 14/11/2011 13:19, Neil Richards wrote:
> > :
> > Of course, there are certain situations where the Java documentation
> > guides you to specify property values which are not String objects.
> > One that springs to my mind is the setting of "java.naming.corba.orb" to
> > point to the ORB instance to be used by the JNDI/COS Naming Service
> > Provider .
> > (For those using this provider, this setting tends to be important in
> > limiting the resources it consumes).
> > So I'm not sure it's correct to assume that it is an error for Property
> > settings to have non-String values.
> Neil - I think this is a property that is specified in the JNDI
> environment (so Hashtable<?,?> rather than Properties). The only method
> that is impacted by the discussion here is System.clearProperty which
> has always thrown CastClassException if invoked to remove a property
> that doesn't have a String value. I think we're concluding that the only
> thing we do can is fix it so that it doesn't remove the property when it
> fails (and clarify the javadoc accordingly).
Ah yes, I see - having looked over the API for System properties again,
and that for InitialContext, I agree with what you say.
(My recollection was that one could set this JNDI environment via the
System properties, but I now see it would be unreasonably tortuous to
try to set things up in this way, given the way the System properties
API is defined.)
Hmm. Post in haste, recant at leisure.
Unless stated above:
IBM email: neil_richards at uk.ibm.com
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
More information about the core-libs-dev