Created
January 26, 2014 18:31
-
-
Save chemikadze/8637165 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chemikadze ~/programming/java $ javac unicode.java | |
unicode.java:4: unclosed string literal | |
private static String s = "\u000d"; | |
^ | |
unicode.java:4: unclosed string literal | |
private static String s = "\u000d"; | |
^ | |
unicode.java:4: <identifier> expected | |
private static String s = "\u000d"; | |
^ | |
unicode.java:5: reached end of file while parsing | |
} | |
^ | |
4 errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.chemikadze; | |
class Main { | |
private static String s = "\u000d"; // unicode literals are expanded BEFORE lexical analysis | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
вау