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

test issue in java/lang/invoke/VarHandles/VarHandleBaseTest.java

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 10
    • Component/s: core-libs

      Description

      In java/lang/invoke/VarHandles/VarHandleBaseTest.java, below code is incorrect.

          static List<TestAccessMode> testAccessModesOfType(TestAccessType... ats) {
              Stream<TestAccessMode> s = Stream.of(TestAccessMode.values());
              for (TestAccessType at : ats) {
                  s = s.filter(e -> e.isOfType(at));
              }
              return s.collect(toList());
          }

          static List<VarHandle.AccessMode> accessModesOfType(TestAccessType... ats) {
              Stream<TestAccessMode> s = Stream.of(TestAccessMode.values());
              for (TestAccessType at : ats) {
                  s = s.filter(e -> e.isOfType(at));
              }
              return s.map(TestAccessMode::toAccessMode).collect(toList());
          }

        Attachments

          Activity

            People

            • Assignee:
              mli Hamlin Li (Inactive)
              Reporter:
              mli Hamlin Li (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: