JDK-6768932: Add support for multiline diagnostics
Nov 7, 2008 ... java:6: no suitable method m found for (String,String) method: <T>m ... constructor of this kind of diagnostic accepts a base ...
Nov 7, 2008 ... java:6: no suitable method m found for (String,String) method: <T>m ... constructor of this kind of diagnostic accepts a base ...
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
The behaviour can even be "cloaked" by using java.util.regex classes: Matcher.group() etc. which seem to use substring internally for String extraction. This way it's nearly impossible to detect the memory leak. This behaviour is totally independent of OS, Java Version, VM type etc.
JDK-6362451 - the string returned by toString() shows the bridge methods as having the volatile modificator.Comments. SUGGESTED FIX src/share/classes/java/lang/reflect>sccs sccsdiff -r1.52 -r1.53 Constructor.java - Constructor.java - 336c336 < int mod = getModifiers...
That way the benefits of using such methods would be encouraged. Maybe have the static factory methods grouped after the constructors in the javadoc.For example, "static Integer Integer.valueOf(String)" fits this pattern and is indeed a static factory.