JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... String args[]) { new test (); } } (Review ID ... The problem would be solved if you rewrote the constructors as follows: Method Outer.
Feb 5, 1997 ... ... String args[]) { new test (); } } (Review ID ... The problem would be solved if you rewrote the constructors as follows: Method Outer.
It's an error in java.lang.String source code which is the same for all JDK distributions.I have created a more simple example class which demonstrates this behaviour very clearly. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See bug ID 4637640.
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.
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.