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

Typo in source for RemoteAgent.objectFinalize() .

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.1.4
    • 1.1.1
    • tools
    • None
    • 1.1.4
    • x86
    • windows_nt
    • Not verified



      Name: joT67522 Date: 08/19/97


      The source code for "src/share/sun/sun/tools/debug/RemoteAgent.java"
      contains a mistake:

          void objectFinalize(int id) throws Exception {
              synchronized (out) {
                  out.write(CMD_OBJECT_FINALIZED);
                  out.writeInt(id);
                  out.write(CMD_OBJECT_FINALIZED); <--WRONG
              }
          }

      The method should actually be:

          void objectFinalize(int id) throws Exception {
              synchronized (out) {
                  out.write(CMD_OBJECT_FINALIZED);
                  out.writeInt(id);
                  getReply(CMD_OBJECT_FINALIZED); <--RIGHT
              }
          }



      company - IBM , email - ###@###.###
      ======================================================================

            rfield Robert Field (Inactive)
            johsunw Joon Oh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: