JDK-8327170 : ☂ Enable and fix javac lint warnings
  • Type: Task
  • Component: javafx
  • Sub-Component: build
  • Affected Version: jfx23
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-03-02
  • Updated: 2024-09-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Blocks :  
Blocks :  
Blocks :  
Blocks :  
Description
This is an umbrella task to enable those lint warnings that are deemed to be useful, and to fix or suppress all enabled warnings. It will also track fixing all non-suppressible warnings such as use of sun.misc.Unsafe.

I will file various linked blocking bugs to do the actual work. We might fix and enable some lint warnings globally, while others are fixed and enabled on a per-module basis.

Comments
Here are the current set of javac lint options with my quick take on which ones are definitely useful, which ones are likely to be useful, which ones might be useful, and which ones are unlikely to be useful. Definitely useful ----------------- missing-explicit-ctor removal The above two will be enabled for all modules as part of the initial changes. Likely useful ------------- deprecation dep-ann divzero empty fallthrough finally lossy-conversions synchronization text-blocks preview Maybe useful ------------ auxiliaryclass exports classfile module opens overloads overrides processing rawtypes requires-automatic requires-transitive-automatic serial static this-escape try unchecked varargs Not likely useful ------------------- cast options output-file-clash path strictfp
02-03-2024