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

(bf spec) ByteBuffer::alignmentOffset spec misleading when address is misaligned

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 14
    • 9, 13
    • core-libs
    • b32
    • solaris_11

    Backports

      Description

        It was observed that the tests which evaluate the alignmentOffset return value fail on Solaris SPARC.
         
          int offset = mbb.alignmentOffset(index, unitSize);
          Assert.assertTrue(offset >= 0);
          
         Expected true but actually is false thus making the test fail.

        The URL of the failing test: tests/api/java_nio/MappedByteBuffer/AlignmentOffsetTest.html

        Attachments

          Issue Links

            Activity

              People

                bpb Brian Burkhalter
                kganapureddy Krushnareddy Ganapureddy
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: