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

Introduce DISABLED_WARNINGS for Java compilation

XMLWordPrintable

    • b15

      For native code, we have a system to turn of individual warnings on a per-library basis. We should have a similar system for Java compilation.

      The suggestion is to introduce a DISABLED_WARNINGS argument to SetupJavaCompilation. We could then be able to express something like:

      jdk.xml.ws_DISABLED_WARNINGS := rawtypes deprecation finally

      to get the jdk.xml.ws module to compile with '-Xlint:all,-rawtypes,-deprecation,-finally'

      As an addition, we can also filter out the annoying:
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.

      and so finally achieve a true warning-free build.

            ihse Magnus Ihse Bursie
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: