Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4476482

javax.security.auth.callback.CallbackHandler doc uses "td" vs. declared "toc"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • security-libs
    • beta2
    • generic
    • generic



      Name: krC82822 Date: 06/29/2001


      This is a documentation error in the example for the CallbackHandler interface.

      I found out that in the example under the handler in the
      CallbackHandler interface the variable 'td ' is used instead of the declared variable 'toc '...

      ------------

      29 Jun 2001, eval1127@eng --
      http://java.sun.com/products/j2se/1.4/docs/api/javax/security/auth/callback/CallbackHandler.html

      needs the following changes:

      16c16
      < System.out.println(toc.getMessage());
      ---
      > System.out.println(td.getMessage());
      19c19
      < System.out.println("ERROR: " + toc.getMessage());
      ---
      > System.out.println("ERROR: " + td.getMessage());
      22c22
      < System.out.println("WARNING: " + toc.getMessage());
      ---
      > System.out.println("WARNING: " + td.getMessage());
      26c26
      < toc.getMessageType());
      ---
      > td.getMessageType());

      (Review ID: 127260)
      ======================================================================

            claisunw Charlie Lai (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: