Amila Suriarachchi ha scritto:
As I remember there were some alternatives to this and this is what we did.
Idea was to keep the variable type as int since it is convenitent to use.
As you have told when it comes to boolean there is a problem.
In programming we use a boolean to keep two states. So Are we really
going to handle three states with the booleans.
thanks,
Amila.
Well, I think that one of the benefits of using Integer, Double,
Boolean, etc. instead of int, double, boolean etc. is that an Integer,
Double, Boolean can also be null.
"null" can have a lot of meanings, even for a boolean parameter.
Also C# in .NET 2.0 improved against .NET 1.1 by allowing to specify
null for simple types when corresponding elements are marked as nillable.
I think that WSDL2Java should, at least, give you the option to use the
wrapper classes instead of the primitive types when (and only when) this
is necessary (i.e.: when an element in the WSDL is defined as nillable
or when it is marked with minOccurs="0"+maxOccurs="1"). IMHO, this
option should also be on by default...
Amila, since this is a strong need for us, do you think you could do
something? Should I open a JIRA? Is there any hope to have this feature
in a new nightly build?
Thanks in advance!
--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]