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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • 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.

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

              Created:
              Updated: