[ 
https://issues.apache.org/jira/browse/TUSCANY-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559045#action_12559045
 ] 

Kelvin Goodson commented on TUSCANY-1483:
-----------------------------------------

Amita,  thanks for looking at this.  A while back we moved nearly all of our 
generated class test cases out of the tools project into the tools-test 
project.  The reason for this is that generating classes in a build requires 
use of the plugin project,  but the plugin project relies on the tools project, 
so we couldn't add a test scope dependency of the tools project on the plugin 
one,  as there would then be circular dependencies.  The outcome is that we 
have an extra project,  with dependencies on both tools and plugin,  where 
nearly all the testing goes on.  The only test I left in the tools project 
itself was one that looked at package names,  and for that I bypassed the 
plugin.  The reason for this was that I could inspect runtime artifacts to 
ensure the behaviour,  instead of having into inspect files or jars if I had 
done the test using the plugin.

The upshot of this is that I think the behaviour in question for this JIRA is 
better tested in the tools-test project, where we can just add the schema to a 
stanza in the pom.xml,  and exercise the generated classes in a small test 
program.

> Static SDO generator: problem with elements named internal*
> -----------------------------------------------------------
>
>                 Key: TUSCANY-1483
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1483
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-beta1
>            Reporter: Daniel Peter
>            Priority: Minor
>             Fix For: Java-SDO-Next
>
>         Attachments: 1483-withTestCase.patch, 1483.patch, test1483.xsd
>
>
> 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. 
> The generator could use a different, less probable prefix (e.g. ___INTERNAL_).
> Thanks, Daniel.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to