fullRuntime/src/sc/type/RTypeUtil.java
public static Class loadClass(String className) {
      Map<String,Class> clMap = null;
      try {
         Class res;
         clMap = getClassLoaderInitMap(null);
         res = clMap.get(className);
         if (res != null) {
            if (res == NullSentinelClass.class) {
               return null;
            }
            return res;
         }
         res = Class.forName(className);
         if (res != null) {
            clMap.put(className, res);
            if (verboseClasses) {
               System.out.println("Loaded class: " + className + " from default classLoader: " + res.getClassLoader());
            }
         }
         return res;
      }
      catch (ClassNotFoundException exc) {
         clMap.put(className, NullSentinelClass.class);
      }
      return null;
   }
/**
    * Returns an initialized class by name.
    */
Returns an initialized class by name.
Returns an initialized class by name .
public static Class loadClass(String className) {
      Map<String,Class> clMap = null;
      try {
         Class res;
         clMap = getClassLoaderInitMap(null);
         res = clMap.get(className);
         if (res != null) {
            if (res == NullSentinelClass.class) {
               return null;
            }
            return res;
         }
         res = Class.forName(className);
         if (res != null) {
            clMap.put(className, res);
            if (verboseClasses) {
               System.out.println("Loaded class: " + className + " from default classLoader: " + res.getClassLoader());
            }
         }
         return res;
      }
      catch (ClassNotFoundException exc) {
         clMap.put(className, NullSentinelClass.class);
      }
      return null;
   }
public static Class loadClass ( String className ) { Map < String , Class > clMap = null ; try { Class res ; clMap = getClassLoaderInitMap ( null ) ; res = clMap . get ( className ) ; if ( res != null ) { if ( res == NullSentinelClass . class ) { return null ; } return res ; } res = Class . forName ( className ) ; if ( res != null ) { clMap . put ( className , res ) ; if ( verboseClasses ) { System . out . println ( "Loaded class: " + className + " from default classLoader: " + res . getClassLoader ( ) ) ; } } return res ; } catch ( ClassNotFoundException exc ) { clMap . put ( className , NullSentinelClass . class ) ; } return null ; }
Returns an initialized class by name.
Returns an initialized class by name .