code: private static void addNoInterfaceHashCodeMethod(ClassWriter cw,
                                                       String implClassName)
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, INDENT + "adding method : hashCode ()I");
  
          // -----------------------------------------------------------------------
          // public int hashCode()
          // {
          // -----------------------------------------------------------------------
          final String desc = "()I";
          MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "hashCode", desc, null, null);
          GeneratorAdapter mg = new GeneratorAdapter(mv, ACC_PUBLIC, "hashCode", desc);
          mg.visitCode();
  
          // -----------------------------------------------------------------------
          //    return this.ivWrapperBase.hashCode();
          // -----------------------------------------------------------------------
          loadWrapperBase(mg, implClassName, LOCAL_BEAN);
          mg.visitMethodInsn(INVOKEVIRTUAL, "java/lang/Object",
                             "hashCode",
                             desc);
          mg.returnValue();
  
          // -----------------------------------------------------------------------
          // }
          // -----------------------------------------------------------------------
          mg.endMethod();
          mg.visitEnd();
      }
docs: d583041