JDK-8007401 : Write test to check for generation of warnings when '_' is used as an identifier
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-02-01
  • Updated: 2013-06-11
  • Resolved: 2013-02-14
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 b82Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
With Lambda going in JDK8, use of '_' as an identifier is being deprecated. For JDK8, warnings will be generated for its usage.

A test needs to be written to use '_' as an identifier for all possible usages of identifier and check that warnings are generated for each case. 
Comments
Test pushed in Lambda repo: http://hg.openjdk.java.net/lambda/lambda/langtools/rev/89bc9300b5e5
14-02-2013

See the test provided by JDK-8006561 test/tools/javac/lambda/WarnUnderscoreAsIdent.java Any additional tests should be done by JCK, not here. I recommend this issue should be closed, will not fix.
01-02-2013

Go through JLS to get all possible usages of identifier to create a test code.
01-02-2013