LEXER FAIL
class foo
{
public static void main(String[] args)
{
// This prints: \uXXXX
System.out.println("\\uXXXX");
}
}
$ javac -Xlint:all foo.java
foo.java:5: illegal unicode escape
// This prints: \uXXXX
^
1 error
No, Java. You shouldn't look for escape sequences in comments. Why are you processing string literal escapes there? Why are you even doing it at that stage of processing? C'mon.
<< Home