JDK-8161256: general data in constant pools - Java Issue Tracker
Jul 12, 2016 ... ... string argument.) As with `invokedynamic ... method would return a value which would be immediately converted to the required type.
Jul 12, 2016 ... ... string argument.) As with `invokedynamic ... method would return a value which would be immediately converted to the required type.
- If the return types are related functional interface types, then the old logic doesn't even consider the lambda's return expressions; either way, one is more specific than the other iff first return <: second return, and not vice versa.
The following discussion gives two examplesIf 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.
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 user types into the text field without pressing return or the Open/Save button, it is impossible to retrieve that string. For an example, see NetBeans (using v 3.3, but probably exists in earlier and later versions), File | Mount Filesystem wizard, "Select Directory" panel.