Code:
public class Demo {
public static void main(String[] args) {
System.out.println(STR.'\{1+2}');
}
}
Latest javac (build 22-ea+7-489) compiles this and produces 3 as an
output. I believe this is a mistake in the compiler.
public class Demo {
public static void main(String[] args) {
System.out.println(STR.'\{1+2}');
}
}
Latest javac (build 22-ea+7-489) compiles this and produces 3 as an
output. I believe this is a mistake in the compiler.
- relates to
-
JDK-8285932 Implementation of JEP 430 String Templates (Preview)
- Resolved