JDK-8022567 : Javac Should Generate Warnings For Raw Array Type
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-08-07
  • Updated: 2013-10-08
  • Resolved: 2013-09-19
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.
JDK 8
8 b110Fixed
Related Reports
Relates :  
Description
Javac does not generate warnings for the following test case which uses raw types.

//Main.java

import java.util.*;

public class Main {
    public static final Class[] TEST_CLASS = new Class<?>[16];
    public static final List[] TEST_MAP = new ArrayList<?>[16];
}

After compiling with javac -Xlint:all Main.java, no warnings are printed out.