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

Add @SuppressWarnings option "lossy-conversions" description to jdk.compiler module javadoc and javac man page

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 20-pool, 21
    • tools
    • None
    • minimal
    • Hide
      This is follow-up CSR to JDK-8286377 with missing documentation.
      There is no new compatibility risk.
      Show
      This is follow-up CSR to JDK-8286377 with missing documentation. There is no new compatibility risk.
    • Java API, Other
    • JDK

      Summary

      Add @SuppressWarnings option "lossy-conversions" description to jdk.compiler module javadoc and javac man page.

      Problem

      @SuppressWarnings option "lossy-conversions" has been added to JDK 20 (see JDK-8286377), however the option description is missing in jdk.compiler module javadoc and javac man page.

      Solution

      Add missing description to jdk.compiler module javadoc and javac man page.

      Specification

      New row in jdk.compiler module javadoc under Strings supported by SuppressWarnings table:

      |       String      | Suppress Warnings About ...                       |
      | lossy-conversions | possible lossy conversions in compound assignment |

      New key value in javac man page under -Xlint section:

      lossy-conversions: Warns about possible lossy conversions in compound assignment.

            asotona Adam Sotona
            acobbs Archie Cobbs
            Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: