Results for “java function return string type in python code example file site:bugs.java.com”
bugs.java.com
Bug ID: JDK-8196004 JEP 326: Raw String Literals (Preview)
Type: JEP. Component: specification.Real-world Java code, which frequently embeds fragments of other programs (SQL, JSON, XML, regex, etc) in Java programs, needs a mechanism for capturing literal strings as-is, without special handling of Unicode escaping, backslash, or new lines.
bugs.java.com
Bug ID: JDK-4034116 Functions that return multiple values
It would be nice if functions could return more than one object for example. public (int, File) getData(int p_stuff){ return m_anInt, m_aFile; } ... File f; int i; (i, f) = getData(2); This save having to make an object just to hold the data.
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.