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

Regression: common compiler diagnostic features swapped required/found types

    XMLWordPrintable

Details

    • b34
    • generic, unknown
    • generic
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: