This is a simple test case that illustrates the issue with type inference on a String + some primitive. The code is package javaonepointfive; public class TypeInferencePrimAndStringOp { public static void main(String[] args) { int a = 2; String result = "a" + a; } } |
||
---|---|---|
.. | ||
jdt/test | ||
test |