JDK-8161256: general data in constant pools - Java Issue Tracker
Jul 12, 2016 ... ... method would return a value which would be immediately converted to the required type. ... user code. Probably it should be "get group ...
Jul 12, 2016 ... ... method would return a value which would be immediately converted to the required type. ... user code. Probably it should be "get group ...
fails with: Test.java:11: error: incompatible types: cannot infer type-variable(s) T,U.type-variable: CAP#1 extends String from capture of ? extends String 1 error. but if the lambda is implicit: e -> e.trim(), it compiles just fine.
If you change the return type of all clone() methods in the Java library to the right type, it seem to me that it would not break the backward compatibility, except in the case of obvious programming error. In those cases, this change will help to catch at compile time some errors which are...