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

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

XMLWordPrintable

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

        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

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

                Created:
                Updated:
                Resolved: