Details
-
Type:
Enhancement
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 9
-
Fix Version/s: 15
-
Component/s: infrastructure
-
Labels:
-
Subcomponent:
-
Resolved In Build:b15
Description
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.
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.