You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Daniel Peter <dp...@yahoo.de> on 2007/07/26 15:08:30 UTC

Static SDO generator: problem with elements named internal*

Hi,
I run into a problem with the static generated SDOs,
when having a xsd with the following two elements:

<xsd:element name="abc" type="xsd:integer" />
<xsd:element name="internalAbc" type="xsd:integer" />

In the generated Impl class this leads twice to the
same constant INTERNAL_ABC.

The xsd elements might simply be renamed in order to
avoid this clash, but there might be situations where
this is not possible. Could the generator use a
different, less probable prefix (e.g. ___INTERNAL_),
or are there other parties dependent on the current
prefix INTERNAL_?

Thanks, Daniel.


      __________________________________ Wissenswertes zum Thema PC, Zubehör oder Programme. BE A BETTER INTERNET-GURU!  www.yahoo.de/clever

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org


Re: Static SDO generator: problem with elements named internal*

Posted by Frank Budinsky <fr...@ca.ibm.com>.
Hi Daniel,

I don't see any problem with making this change (globally replace 
"INTERNAL_" with "_INTERNAL_" in SDOClass.javajet and SDOFactory.javajet), 
but unfortunately it's too late for R1.0 - it will need to be in the next 
release (R1.1 or R1.0.1 or whatever it is). Please open a JIRA for this.

Thanks,
Frank.

Daniel Peter <dp...@yahoo.de> wrote on 07/26/2007 09:08:30 AM:

> Hi,
> I run into a problem with the static generated SDOs,
> when having a xsd with the following two elements:
> 
> <xsd:element name="abc" type="xsd:integer" />
> <xsd:element name="internalAbc" type="xsd:integer" />
> 
> In the generated Impl class this leads twice to the
> same constant INTERNAL_ABC.
> 
> The xsd elements might simply be renamed in order to
> avoid this clash, but there might be situations where
> this is not possible. Could the generator use a
> different, less probable prefix (e.g. ___INTERNAL_),
> or are there other parties dependent on the current
> prefix INTERNAL_?
> 
> Thanks, Daniel.
> 
> 
>       __________________________________ Wissenswertes zum Thema PC,
> Zubehör oder Programme. BE A BETTER INTERNET-GURU!  www.yahoo.de/clever
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-user-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org