Address possibly lossy conversion in compound assignments in the JDK (umbrella)

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      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.

      While this is convenient coding pattern, for formal classes it is a poor programming practice and it should be addressed in JDK.

      This is an umbrella issue and it is expected to contain more specific sub-tasks and relate with other issues addressing "possibly lossy conversion in compound assignments" in various JDK sub-components.

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

              Created:
              Updated: