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

Convert lambda most specific positive tests to check runtime behavior

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b152
    • Verification:
      Verified

      Description

      test/tools/javac/lambda contains 9 positive tests in the 'MostSpecificNN.java' set. The tests confirm that the given pair of methods is disambiguated, but don't confirm that the compiler makes the correct choice. These should add a 'main' jtreg step that verifies that the wanted method is run, rather than the less-specific one.

      List of tests:
      MostSpecific10
      MostSpecific11
      MostSpecific15
      MostSpecific17
      MostSpecific18
      MostSpecific20
      MostSpecific22
      MostSpecific27
      MostSpecific29

        Attachments

          Activity

            People

            • Assignee:
              vromero Vicente Arturo Romero Zaldivar
              Reporter:
              dlsmith Dan Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: