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

Unreachable code in CompactXXXArray

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.2.0
    • core-libs
    • None
    • beta
    • x86
    • windows_nt

      Name: bb33257 Date: 08/06/98


      CompactXXXArray.hasNext() contains code that will never be executed,
      ----
      // Find the next character in the array
      public boolean hasNext() {
         nextIndex = index;
         boolean done = true;
         if (index != nextIndex) // hasNext has already been called, and there's a new
                      // index waiting to be returned
                      return true;
                  }
                  
      .....
      ----
      nextIndex is always set to be equal to index when entering this method.
      ======================================================================
      ###@###.### 11/2/04 18:19 GMT

            peytoia Yuka Kamiya (Inactive)
            bcbeck Brian Beck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: