bugs.java.com
JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... For example, the following program would fail at ... method may fail if the method happens to be executed by the superclass constructor.
Feb 5, 1997 ... For example, the following program would fail at ... method may fail if the method happens to be executed by 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 : When providing a lambda function into a constructor that has a custom consumer interface as a parameter, compiler throws an assertion error. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Compile provided source code.