You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "David T. Adcox (JIRA)" <tu...@ws.apache.org> on 2007/07/23 23:45:31 UTC

[jira] Updated: (TUSCANY-1470) Generated SDO APIs have compilation errors when sub-type has the same name as super-type

     [ https://issues.apache.org/jira/browse/TUSCANY-1470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David T. Adcox updated TUSCANY-1470:
------------------------------------

    Attachment: 1470.patch

This patch resolves this issue by following Frank's suggestion of replacing the base.getClassName() references with base.getImportedClassName().  I have generated the infostree.xsd file and verified that it compiles cleanly.

I am also working on a test case that will be able to generate and compile schemas during each build of SDO.  This particular issue would have benefited from such a test case.  I hope to have something available in a day or two.

> Generated SDO APIs have compilation errors when sub-type has the same name as super-type
> ----------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1470
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1470
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-1.0
>         Environment: WinXP
>            Reporter: Fuhwei Lwo
>             Fix For: Java-SDO-1.0
>
>         Attachments: 1470.patch
>
>
> Run the codegen tool on src/test/resources/extensible/infostreet.xsd. The generated code like the one below cannot be compiled because SDO_PROPERTY_COUNT becomes ambiguous.
> *infostreet.xsd*
> <xsd:complexType name="InfoType">
> 		<xsd:complexContent>
> 			<xsd:extension base="customer:InfoType">
> 				<xsd:sequence>
> 					<xsd:element name="street" type="xsd:string" />
> 				</xsd:sequence>
> 			</xsd:extension>
> 		</xsd:complexContent>
> 	</xsd:complexType>
> public class InfoTypeImpl extends InfoTypeImpl implements InfoType
> {
>   public final static int STREET = InfoTypeImpl.SDO_PROPERTY_COUNT + 0;
>   public final static int SDO_PROPERTY_COUNT = InfoTypeImpl.SDO_PROPERTY_COUNT + 1;

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org