Results for “java function return string example script site:bugs.java.com”
bugs.java.com
JDK-4263927 - Java Issue Tracker
Name: wl91122 Date: 08/19/99 FontMetrics returns incorrect stringWidth () for PLAIN font in PrintGraphics context on WinNT4/JDK1.1.8. The sample code below attempts to print a right justified string in both PLAIN and BOLD font styles.
bugs.java.com
Bug ID: JDK-8196004 JEP 326: Raw String Literals (Preview)
Add _raw string literals_ to the Java programming language.where the supplied function f is called with `this` string as the argument. Example: ``` public class MyClass { private static final String MARKER= "| "; public String stripMargin(String string) {. return lines().map(String::strip).
bugs.java.com
JDK-8057825 : emitted socket arg becomes null in avatar.js ...
This seems to be a reproducer: function createApplier (f) { function applier () { f.apply (this, arguments); } return applier; } function printer (x) { print (x); } var printerApplier = createApplier (printer); printerApplier (); printerApplier.apply (this, ["foo"]); Expected output is: undefined foo but it prints undefined undefined Setting -Dnashorn.apply2call=false will make it work ...