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

TestByteBuffer::testScopedBuffer is skipping tests

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools

      Description

      TestByteBuffer::testScopedBuffer is using the following code to skip some members of *Buffer it does not want to test:

                  if ((!e.getKey().getName().contains("get") &&
                          !e.getKey().getName().contains("put"))
                          || e.getValue().length > 2) { // skip bulk ops
                      //skip
                      return;
                  }

      But, because of the 'return' this is skipping all of the trailing method when encountering the first non-tested method.

        Attachments

          Activity

            People

            • Assignee:
              jvernee Jorn Vernee
              Reporter:
              jvernee Jorn Vernee
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: