JDK-8161256: general data in constant pools - Java Issue Tracker
Jul 12, 2016 ... ... type information, it would also contribute a name string argument.) ... code are TBD, but see static methods above for an example. Source ...
Jul 12, 2016 ... ... type information, it would also contribute a name string argument.) ... code are TBD, but see static methods above for an example. Source ...
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.
The following code give an example with the two classes aboveEVALUATION A proposal for allowing a change in the return type of an OVERRIDING method is being studied. This was a feature in early versions of the Java language, and might conceivably be reinstated.
- 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.
4: return. LineNumberTable: line 2: 0. private static boolean isEnabled(java.lang.String); descriptor: (Ljava/lang/String;)Z flags: ACC_PRIVATE, ACC_STATIC Code: stack=2, locals=1, args_size=1.