Release Note: Javac Warns about Type Casts in Compound Assignments with Possible Lossy Conversions

XMLWordPrintable

    • b16

      New lint option `lossy-conversions` has been added to `javac` to warn about type casts in compound assignments with possible lossy conversions.
      If the type of the right-hand operand of a compound assignment is not assignment compatible with the type of the variable, a cast is implied and possible lossy conversion may occur.

      The new warnings can be suppressed using `@SuppressWarnings("lossy-conversions")`.

            Assignee:
            Adam Sotona
            Reporter:
            Adam Sotona
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: