JDK-6868490 : exotic identifier syntax should not be enabled by default in -source 6 or earlier
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2009-08-04
  • Updated: 2010-11-19
  • Resolved: 2010-11-19
Related Reports
Relates :  
Description
This class compiles under javac -source 6:
  class #"a+b" { }

It should report a syntax error, since that version of the language does not support exotic identifiers.