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

SetOfInteger toString method misses some ranges.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • 2d
    • beta
    • sparc
    • solaris_7

      I found an incredibly tiny bug in SetOfIntegerSyntax.java a while back when I
      was working on the print dialog, but I forgot to include the fix in my
      putbacks. Anyway, take a look at line 528 in that file (in the toString()
      method). The end of the "for" conditional should read i++ rather than i+=2...
      It's pretty mundane (if there are, say, 5 ranges, it will end up printing out
      ranges 1, 3, and 5).

            prr Philip Race
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: