Skip to content

Instantly share code, notes, and snippets.

@chemikadze
Created January 26, 2014 18:31
Show Gist options
  • Save chemikadze/8637165 to your computer and use it in GitHub Desktop.
Save chemikadze/8637165 to your computer and use it in GitHub Desktop.
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
package com.github.chemikadze;
class Main {
private static String s = "\u000d"; // unicode literals are expanded BEFORE lexical analysis
}
@dornatsky
Copy link

вау

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment