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.