JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a problem ... 1 <Field Outer this$0> 10 return Method Outer. Middle.Inner(Outer ...
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a problem ... 1 <Field Outer this$0> 10 return Method Outer. Middle.Inner(Outer ...
For example, command line arguments and environment variables are presented to the user as if they were strings, but the typical content is filenames. Half-hearted attempts to fix this bug would leave us with the ability to access the underlying byte array only in some contexts.
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.
When arr is made public, after reading the instance with XMLDecoder, it contains the default values only, the change is lost. When run with Java 1.6_21 the code works fine regardless of the access specifier of arr.Override public String toString() {. return Arrays.toString(arr)