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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9, 13
    • Fix Version/s: 14
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b32
    • OS:
      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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: