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

Regression: common compiler diagnostic features swapped required/found types

XMLWordPrintable

    • b34
    • generic, unknown
    • generic
    • Verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: