JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... constructors as follows: Method Outer. Middle(Outer) // constructor for Outer.Middle 0 aload_0 1 dup 2 aload_1 3 putfield #1 <Field Outer ...
Feb 5, 1997 ... ... constructors as follows: Method Outer. Middle(Outer) // constructor for Outer.Middle 0 aload_0 1 dup 2 aload_1 3 putfield #1 <Field Outer ...
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.
Add constructors for the FileReader and FileWriter that take a Charset parameter. Problem -. The FileReader and FileWriter were designed as a convenient API for situations where default settings are desirable.
EVALUATION Technically, JLS3 says only FinalClass2 ('s') is illegal, while FinalClass ('this.s') is legal. This is because access to the value of a blank final field "consists of the simple name of the variable occurring anywhere in an expression except as...".
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.