I stumbled over this (again) today:
class Test { char ok = \'\\n\'; char okAsWell = \'\\u000B\'; char error = \'\\u000A\'; }
It
I think the reason is that \uXXXX sequences are expanded when the code is being parsed, see JLS §3.2. Lexical Translations.
\uXXXX