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

Regression: common compiler diagnostic features swapped required/found types

    Details

    • Subcomponent:
    • Resolved In Build:
      b34
    • CPU:
      generic, unknown
    • OS:
      generic
    • Verification:
      Verified

      Description

      Compiling the following program:

      class Test {
      String s = 1;
      }


      produces the following incorrect diagnostic:

      error: incompatible types
      String s = 1;
                 ^
        required: int
        found: String
      1 error

      required vs. found types should be the other way around.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: