private void codeClassForName(Class<?> cl,DataOutputStream out) throws IOException {
  code_ldc(cp.getString(cl.getName()),out);
  out.writeByte(opc_invokestatic);
  out.writeShort(cp.getMethodRef("java/lang/Class","forName","(Ljava/lang/String;)Ljava/lang/Class;"));
}

private void codeClassForName ( Class < ? > cl , DataOutputStream out ) throws IOException { code_ldc ( cp . getString ( cl . getName ( ) ) , out ) ; out . writeByte ( opc_invokestatic ) ; out . writeShort ( cp . getMethodRef ( "java/lang/Class" , "forName" , "(Ljava/lang/String;)Ljava/lang/Class;" ) ) ; }
generate code to invoke the class . forname with the name of the given class to get its class object at runtime . the code is written to the supplied stream . note that the code generated by this method may caused the checked classnotfoundexception to be thrown .
