Community
Participate
Working Groups
Build Identifier: 20100218-1602 Compiler can't handle the Unicode representation of linefeed (\u000a) as a character, but interprets it as a linefeed. therefore even commenting out the line in question doesn't help, because everything after \u000a is interpreted as a new line Reproducible: Always Steps to Reproduce: String string = String.valueOf(matrix[i][j]); // string.replace("\u000a", "LF");
There is nothing wrong with this. Closing as INVALID.
Olivier, I am getting this error with I20100802-1800: "String literal is not properly closed by a double-quote" However, I don't get it when I use "\u001a" or "\u000c". Were you saying the error was expected?
(In reply to comment #2) > Olivier, I am getting this error with I20100802-1800: > > "String literal is not properly closed by a double-quote" > > However, I don't get it when I use "\u001a" or "\u000c". Were you saying the > error was expected? Jay, Please send your test case. I'll take a look again.
Since \u000a is processed before the source is parsed. It means that the line comment ends with this character and what is coming next is seen as a new line. The code is wrong and the errors are expected. Verified for 3.7M1.