code: private static void addClassConstantMethod(ClassVisitor cv) // RTC111522
      {
          // -----------------------------------------------------------------------
          // static synthetic Class class$(String className)
          // {
          //   try
          //   {
          //     return Class.forName( className );
          //   }
          //   catch ( ClassNotFoundException cnfex )
          //   {
          //     throw new NoClassDefFoundError(cnfex.getMessage());
          //   }
          // }
          // -----------------------------------------------------------------------
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, INDENT + "adding method : class$ (Ljava/lang/String;)Ljava/lang/Class;");
  
          MethodVisitor mv;
          mv = cv.visitMethod(ACC_STATIC + ACC_SYNTHETIC, "class$",
                              "(Ljava/lang/String;)Ljava/lang/Class;", null, null);
          mv.visitCode();
          Label try_begin = new Label();
          mv.visitLabel(try_begin);
          mv.visitVarInsn(ALOAD, 0);
          mv.visitMethodInsn(INVOKESTATIC, "java/lang/Class", "forName",
                             "(Ljava/lang/String;)Ljava/lang/Class;");
          mv.visitInsn(ARETURN);
          Label try_end = new Label();
          mv.visitLabel(try_end);
          mv.visitVarInsn(ASTORE, 1);
          mv.visitTypeInsn(NEW, "java/lang/NoClassDefFoundError");
          mv.visitInsn(DUP);
          mv.visitVarInsn(ALOAD, 1);
          mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/Throwable", "getMessage",
                             "()Ljava/lang/String;");
          mv.visitMethodInsn(INVOKESPECIAL, "java/lang/NoClassDefFoundError",
                             "<init>", "(Ljava/lang/String;)V");
          mv.visitInsn(ATHROW);
          mv.visitTryCatchBlock(try_begin, try_end, try_end, "java/lang/ClassNotFoundException");
          mv.visitMaxs(3, 2);
          mv.visitEnd();
      }
docs: Adds the class$ method needed to load class constants.
  
  @param cv The current class visitor.