Results for “java function return string type in python program site:bugs.java.com”
bugs.java.com
Bug ID: JDK-8196004 JEP 326: Raw String Literals (Preview)
Add _raw string literals_ to the Java programming language.Python, Kotlin, Groovy and Swift have opted to use triple double quotes to indicate raw strings. This choice reflects the connection with existing string literals. Go and JavaScript use the backtick.
bugs.java.com
Bug ID: JDK-8025290 javac implicit versus explicit lambda compilation...
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. Reported by Zhong Yu through lambda-dev@...
bugs.java.com
Bug ID: JDK-8160406 Collection.toArray() spec should be explicit about...
Description. Collection.toArray() is specified to return an object of type Object[], but since arrays are covariant, that requirement is met by any array of a subtype of Object, for example, String[]. It's subtle, but it's clearly, if not explicitly, a bug to return an array of a subtype. See JDK-6260652.