JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a problem because Java allows subclass methods to be run from the superclass constructor.
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a problem because Java allows subclass methods to be run from the superclass constructor.
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.
A DESCRIPTION OF THE PROBLEM : The JVM may throw an OutOfMemoryError if it cannot allocate an array of the requested size, even if there is enough available memory, see JDK-8029587. The JDK has this maximum size hardcoded at multiple places, but does not expose it publicly.
And similarly the public String[] split(String regex, int limit) also fails for the regex ".". STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : public boolean fooMethod() {.And that's because the fourOctets is an zero (0) length array returned by the split(".") method.
The site is experiencing technical difficulties. We are aware of the issue and are working as quickly as possible to correct the issue. Please try again in a few moments. We apologize for any inconvenience this may have caused. To speak with an Oracl...
The site is experiencing technical difficulties. We are aware of the issue and are working as quickly as possible to correct the issue. Please try again in a few moments. We apologize for any inconvenience this may have caused. To speak with an Oracl...