synchronized RVMType loadVMClass(String className) throws NoClassDefFoundError {
  try {
    InputStream is=getResourceAsStream(className.replace('.',File.separatorChar) + ".class");
    if (is == null)     throw new NoClassDefFoundError(className);
    DataInputStream dataInputStream=new DataInputStream(is);
    RVMType type=null;
    try {
      type=RVMClassLoader.defineClassInternal(className,dataInputStream,this);
      loaded.put(className,type);
    }
  finally {
      try {
        dataInputStream.close();
      }
 catch (      IOException e) {
      }
    }
    return type;
  }
 catch (  NoClassDefFoundError e) {
    throw e;
  }
catch (  Throwable e) {
    NoClassDefFoundError ncdf=new NoClassDefFoundError(className);
    ncdf.initCause(e);
    throw ncdf;
  }
}

synchronized RVMType loadVMClass ( String className ) throws NoClassDefFoundError { try { InputStream is = getResourceAsStream ( className . replace ( '.' , File . separatorChar ) + ".class" ) ; if ( is == null ) throw new NoClassDefFoundError ( className ) ; DataInputStream dataInputStream = new DataInputStream ( is ) ; RVMType type = null ; try { type = RVMClassLoader . defineClassInternal ( className , dataInputStream , this ) ; loaded . put ( className , type ) ; } finally { try { dataInputStream . close ( ) ; } catch ( IOException e ) { } } return type ; } catch ( NoClassDefFoundError e ) { throw e ; } catch ( Throwable e ) { NoClassDefFoundError ncdf = new NoClassDefFoundError ( className ) ; ncdf . initCause ( e ) ; throw ncdf ; } }
backdoor for use by typereference . resolve when ! vm . runningvm . as of this writing , it is not used by any other classes .
