Results for “java array string 1 code find object 2 script error site:bugs.java.com failed”
bugs.java.com
Bug ID: JDK-8025290 javac implicit versus explicit lambda compilation...
I fail to see the issue, your code compiles with ? extends because here you don't use the return type. If the callsite is: Comparator<String> c = mycomparing((Object e) -> e.toString()); the version with ? extends fails to compile too which is the expected behavior.
bugs.java.com
Bug ID: JDK-6294060 Use of substring() causes memory leak
It's an error in java.lang.String source code which is the same for all JDK distributions.Create String from char array, release dummy char array. String longString = new String(bigCharArray)