On this coderanch link, I found that the following comment will give compiler error :-
// Compiler Error due to this Unicode char '\u000a'
Reason being, the Unicode sequence is directly replaced by the actual character it corresponds to. Since ‘\u000a’ corresponds to newLine character, a newLine is placed at the place where ‘\u000a’ is found.
My question is that, “Is there any other way of having Compilation Error due to a comment?”
IF you define a function a deprecated in a comment (
@deprecated), AND you set your compiler to throw errors when deprecated methods are used (at least the internal Eclipse compiler can be configured this was, AFAIK)