Java 8 release changes
getService(String type, String algorithm) calls. ... JavaScript programs that reference java.lang.Class objects are now limited to the following methods:
getService(String type, String algorithm) calls. ... JavaScript programs that reference java.lang.Class objects are now limited to the following methods:
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.
5.1.11 defines _string conversion_ for primitive types in terms of a wrapper class constructor call followed by a 'toString' call. The wrapper class constructors are now deprecated for removal, and JLS should not depend on them.
For example, "static Integer Integer.valueOf(String)" fits this pattern and is indeed a static factory. What surprised me was how extensive static factories are used in the JDK.The summary table order would make sense with the constructors first and static factory methods second.