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

(test) HexPrinter cleanup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b27

      Backports

        Description

        Correct issues with the test support for jdk.test.lib.hexdump.HexPrinter.
         - Correct the swapped definitions of ASCII and PRINTABLE
           Printable should always return a single character,
           ASCII provides mnemonics to be consistent with the command line hexdump.

         - For the methods to format ByteBuffers align the descriptions of the index and length to match ByteBuffer.

         - Correctly implement the extraction of bytes from the ByteBuffer

         - a newline in the annotation should print as '\n' instead of causing a line break

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rriggs Roger Riggs
                Reporter:
                rriggs Roger Riggs
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: