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

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

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P4
    • tbd
    • None
    • core-libs
    • None

    Description

      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.

      Attachments

        Issue Links

          1.
          Address possibly lossy conversions in java.base Sub-task Resolved Roger Riggs  
          2.
          Address possibly lossy conversions in java.desktop Sub-task Open Philip Race  
          3.
          Address possibly lossy conversions in java.xml Sub-task Open Joe Wang  
          4.
          Address possibly lossy conversions in java.net.http Sub-task Resolved Daniel Fuchs  
          5.
          Address possibly lossy conversions in java.smartcardio Sub-task Resolved Roger Riggs  
          6.
          Address possibly lossy conversions in jdk.crypto.ec Sub-task Resolved Ryan Ernst  
          7.
          Address possibly lossy conversions in jdk.incubator.foreign moved to java.base Sub-task Resolved Jorn Vernee  
          8.
          Address possibly lossy conversions in jdk.compiler Sub-task Resolved Adam Sotona  
          9.
          Address possibly lossy conversions in jdk.jfr Sub-task Resolved Erik Gahlin  
          10.
          Address possibly lossy conversions in java.rmi Sub-task Resolved Roger Riggs  
          11.
          Address possibly lossy conversions in jdk.naming.dns Sub-task Resolved Darragh Clarke  
          12.
          Address possibly lossy conversions in java.security.jgss Sub-task Resolved Ryan Ernst  
          13.
          Address possibly lossy conversions in jdk.management.jfr Sub-task Resolved Erik Gahlin  
          14.
          Address possibly lossy conversions in jdk.hotspot.agent Sub-task Resolved Ryan Ernst  
          15.
          Address possibly lossy conversions in jdk.internal.le Sub-task Resolved Adam Sotona  
          16.
          Address possibly lossy conversions in JDK Build Tools Sub-task Resolved Naoto Sato  
          17.
          Address possibly lossy conversions in J2Demo Sub-task Open Philip Race  
          18.
          Address possibly lossy conversions in Microbenchmarks Sub-task Resolved Claes Redestad  
          19.
          Address possibly lossy conversions in java.base FloatToDecimal Sub-task Resolved Adam Sotona  

          Activity

            People

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

              Dates

                Created:
                Updated: