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

Kelvin Goodson updated TUSCANY-1250:
------------------------------------

    Fix Version/s:     (was: Java-SDO-beta1)
                   Java-SDO-Mx

were not part of beta1 release

> Static SDO generator generates an erroneous factory class, when inheritance 
> and different Java packages are used
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1250
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1250
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SCA-M2
>         Environment: WinXP (tested with Java-SDO-M2 and Java-SDO-M3-RC3)
>            Reporter: Daniel Peter
>             Fix For: Java-SDO-Mx
>
>
> The static SDO generator generates an erroneous factory class, when 
> inheritance and different Java packages are used. 
> The initializeMetaData() method in my generated FactoryImpl class has this 
> piece of code: 
>   ... 
>   // Obtain other dependent packages 
>   SdtFactoryImpl theSdtPackageImpl_1 = 
>     
> (SdtFactoryImpl)FactoryBase.getStaticFactory(SdtFactoryImpl.NAMESPACE_URI); 
>   ... 
>   // Add supertypes to types 
>   addSuperType(myClassType, mySuperClassType); 
>   ... 
> But the variable "mySuperClassType" cannot be resolved at this point, because 
> it is defined in a different package. 
> The code probably should look like this: 
>   addSuperType(myClassType, theSdtPackageImpl_1.getMySuperClass()); 
> I noticed this bug when using M3-RC3, where the -noEmf option is always 
> turned on. 
> The factory/package code is correctly generated with M2, if the -noEmf option 
> is NOT specified, but the same error occurs when the -noEmf option is 
> specified with M2.

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