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

Wrong diagnostic after compaction

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8, 8-repo-lambda
    • Fix Version/s: 8
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b100
    • Verification:
      Verified

      Description

      Compiling this example:

      class Test {
         void m(String s) { }
         void m(Integer i, String s) { }
         void test() {
      m(1, 1);
         }
      }

      Gives the following simplified message:

      Test.java:608: error: method m in class Test cannot be applied to given types;
      m(1, 1);
      ^
        required: String
        found: int,int
        reason: actual and formal argument lists differ in length
      Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output

      This is not good, as the simplified diagnostic is showing the wrong method!

        Attachments

          Activity

            People

            • Assignee:
              mcimadamore Maurizio Cimadamore
              Reporter:
              mcimadamore Maurizio Cimadamore
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: