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

[jira] Commented: (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:comment-tabpanel#action_12514621 ] 

Frank Budinsky commented on TUSCANY-1470:
-----------------------------------------

The bug is in SDOClass.javajet. The calls to "base.getClassName()" should be "base.getImportedName()" (in 9 places). Please make the change and confirm that it fixes the problem. Thanks.


> 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
>
>
> 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