system/src/sc/lang/java/ClassType.java
public ClassType deepCopy(int options, IdentityHashMap<Object, Object> oldNewMap) {
      ClassType res = (ClassType) super.deepCopy(options, oldNewMap);
      if ((options & CopyState) != 0) {
         res.type = type;
      }

      if ((options & CopyInitLevels) != 0) {
         res.chained = chained;
         res.runtimeClass = runtimeClass;
         //res.compiledTypeName = compiledTypeName;
      }
      return res;
   }
/** Preserve the type when we do a deepCopy.  This speeds things up and also makes the system more flexible.  For example, when converting to JS, we may define a new enum class for each constant which is not resolveable in the normal Java model.  It's easy to assign the ClassType's type manually so it does not resolve but then we clone that model.  This ensures that the clone preserves the type and won't try to resolve it (unsuccessfully). */
Preserve the type when we do a deepCopy.  This speeds things up and also makes the system more flexible.  For example, when converting to JS, we may define a new enum class for each constant which is not resolveable in the normal Java model.  It's easy to assign the ClassType's type manually so it does not resolve but then we clone that model.  This ensures that the clone preserves the type and won't try to resolve it (unsuccessfully).
Preserve the type when we do a deepCopy . This speeds things up and also makes the system more flexible . For example when converting to JS we may define a new enum class for each constant which is not resolveable in the normal Java model . It ' s easy to assign the ClassType ' s type manually so it does not resolve but then we clone that model . This ensures that the clone preserves the type and won ' t try to resolve it ( unsuccessfully ) .
public ClassType deepCopy(int options, IdentityHashMap<Object, Object> oldNewMap) {
      ClassType res = (ClassType) super.deepCopy(options, oldNewMap);
      if ((options & CopyState) != 0) {
         res.type = type;
      }
      if ((options & CopyInitLevels) != 0) {
         res.chained = chained;
         res.runtimeClass = runtimeClass;
      }
      return res;
   }
public ClassType deepCopy ( int options , IdentityHashMap < Object , Object > oldNewMap ) { ClassType res = ( ClassType ) super . deepCopy ( options , oldNewMap ) ; if ( ( options & CopyState ) != 0 ) { res . type = type ; } if ( ( options & CopyInitLevels ) != 0 ) { res . chained = chained ; res . runtimeClass = runtimeClass ; } return res ; }
Preserve the type when we do a deepCopy.
Preserve the type when we do a deepCopy .
//res.compiledTypeName = compiledTypeName;