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

SocketConnection.checkState method bugged

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.0
    • 1.0
    • core-svc
    • None
    • 1.0
    • generic
    • generic
    • Verified

      Here after the code:
      while (state != CONNECTED || state != TERMINATED || waitingTime > 0) {
        try {
          stateLock.wait(waitingTime);
        } catch (InterruptedException ire) {
          break;
        }
        waitingTime = endTime - System.currentTimeMillis();
      }


      should be
      while (state != CONNECTED && state != TERMINATED && waitingTime > 0) {
      ...
      ###@###.### 2003-09-17

            sjiang Shanliang Jiang (Inactive)
            slions Sandra Lions-piron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: