JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... For example, the following program would fail at runtime: <pre> class SuperInitBug { static class S { void hi() { System.out.println("You ...
Feb 5, 1997 ... For example, the following program would fail at runtime: <pre> class SuperInitBug { static class S { void hi() { System.out.println("You ...
Following example shows that if Long.MAX_VALUE is used as a parameter for this constructor then this constructor creates object with less then 1970 year in the string representation.
The API does not attempt to produce a string that unambiguously encodes the full type using Class.getName because (a) the class loader information would still ...
It's an error in java.lang.String source code which is the same for all JDK distributions.I have created a more simple example class which demonstrates this behaviour very clearly. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See bug ID 4637640.
Sep 7, 2004 ... ... PROBLEM : setBackground worked on JMenu's that were submenus in Java 1.4.2_0X releases. With the new 1.5.0RC this is broken (see example code) ...
code>. I understand that it is an error to overload a method with an other one with the same signature but a totally different return type.ADVANTAGE IN THE java.text.Format.parseObject(String) METHOD: The java.text.NumberFormat.parse(String) method is implemented as below
... return different format strings: E.g. String and then Integer in French or Spanish. ... For example in English the reproducer prints: $ java -Duser.language=en ...
This problem only occurs if a String constructor has been passed a StringBuffer object as a parameter (which causes the StringBuffer's "shared" flag to be set to true) *AND* the StringBuffer's length is later set to zero. The coding error is in the "StringBuffer.setLength()" method.
If the String passed to the BigInteger(String, int) constructor begins with "-- " (two minus signs), or "-0-" then a BigInteger object is created even though such a String is badly formatted.Example: import java.math.BigInteger