system/src/sc/lang/java/BodyTypeDeclaration.java
public void clearDynamicNew() {
      if (dynamicNew) {
         dynamicNew = false;
         dynamicType = true;

         Object derivedType = getDerivedTypeDeclaration();
         if (derivedType instanceof BodyTypeDeclaration) {
            BodyTypeDeclaration derivedTD = (BodyTypeDeclaration) derivedType;
            if (derivedTD.dynamicNew)
               derivedTD.clearDynamicNew();
         }
      }
   }
/**
    * As soon as one subclass needs to create a real dynamic type from a base type, we need to make the whole type hierarchy dynamic.
    */
As soon as one subclass needs to create a real dynamic type from a base type, we need to make the whole type hierarchy dynamic.
As soon as one subclass needs to create a real dynamic type from a base type we need to make the whole type hierarchy dynamic .
public void clearDynamicNew() {
      if (dynamicNew) {
         dynamicNew = false;
         dynamicType = true;
         Object derivedType = getDerivedTypeDeclaration();
         if (derivedType instanceof BodyTypeDeclaration) {
            BodyTypeDeclaration derivedTD = (BodyTypeDeclaration) derivedType;
            if (derivedTD.dynamicNew)
               derivedTD.clearDynamicNew();
         }
      }
   }
public void clearDynamicNew ( ) { if ( dynamicNew ) { dynamicNew = false ; dynamicType = true ; Object derivedType = getDerivedTypeDeclaration ( ) ; if ( derivedType instanceof BodyTypeDeclaration ) { BodyTypeDeclaration derivedTD = ( BodyTypeDeclaration ) derivedType ; if ( derivedTD . dynamicNew ) derivedTD . clearDynamicNew ( ) ; } } }
As soon as one subclass needs to create a real dynamic type from a base type, we need to make the whole type hierarchy dynamic.
As soon as one subclass needs to create a real dynamic type from a base type we need to make the whole type hierarchy dynamic .