You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ke...@apache.org on 2007/05/16 18:24:59 UTC

svn commit: r538643 - /incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/SDOHelperImpl.java

Author: kelvingoodson
Date: Wed May 16 09:24:58 2007
New Revision: 538643

URL: http://svn.apache.org/viewvc?view=rev&rev=538643
Log:
Fix for issue reported at http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg17749.html.
The problem was that getAllStructuralFeatures was being called early while metadata construction was not yet complete,
and the structural features are cached in that call and not refreshed.  The fix uses an alternative and semantically more accurate tests which avoids the caching.

Modified:
    incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/SDOHelperImpl.java

Modified: incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/SDOHelperImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/SDOHelperImpl.java?view=diff&rev=538643&r1=538642&r2=538643
==============================================================================
--- incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/SDOHelperImpl.java (original)
+++ incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/helper/SDOHelperImpl.java Wed May 16 09:24:58 2007
@@ -404,7 +404,7 @@
       //FB???eStructuralFeature.setUpperBound(ETypedElement.UNSPECIFIED_MULTIPLICITY);
     }
     
-    if (containingType.isSequenced()) {
+    if (ExtendedMetaData.INSTANCE.getMixedFeature((EClass)containingType) != null) {
       eStructuralFeature.setDerived(true);
       eStructuralFeature.setTransient(true);
       eStructuralFeature.setVolatile(true);



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