Hi Alex,

On 18.10.2011 21:18, Alex Milanovic wrote:
Hi,
Here's a possible enhancement idea for the SourceGenerator:
Currently, if it detects two local elements with the same name (defined
under different complex types) it will warn that the resulting Java
class will be overwritten and prompts the user for a confirmation. To
get rid of the warning one can define a global element and reference it
from the two complex types.
>
SourceGenerator could, however, detect that the two local element
declarations are identical (in name, type, minOccurs, maxOccurs, etc.)
and potentially print out a message that because they're identical only
one Java class is created for both.
Yes, I agree that in more genral cases, this could be done. But remember where a user sets special properties based on e.g. target namespace, java package names, etc. In this context it will get more and more difficult to maintain this basic assumption about equality. As such, I think decisions have been taken early in the genesis of Castor to leave it where it stands now.

Not sure if this appears often enough to justify special handling though...
It's not really about the frequency, but about the special seetings on euser might apply during code generation.

Having said that, I am more than willing to work with anybody on such feature to gain a better understanding.

Thanks
Alex
Kind Regards
Werner Guttmann

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to