java-repl
java-repl copied to clipboard
Attempt to assign char an int value results in session termination
The following line result in session termination.
char a = 97
The last line in the following results in session termination
int i = 12
char z = (char)i
Or the null character:
Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_111 on Linux 3.13.0-49-generic
Welcome to JavaREPL Web Console version 425
java> char c = 0;
Session terminated. Starting new session...
java> char c = '0';
char c = 0
java> char c = '\0';
Session terminated. Starting new session...
yes this is the first thing I was trying to do and it failed. So yes I can confirm this bug.
faced the same issue. But mine one is a bit unique.
char c='p'; enc=(char)((int)c+100) // works like a charm
enc=(char)(c^'k') // **session gets terminated **