JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... For example, the following program would fail at runtime: <pre> class SuperInitBug { static class S { void hi() { System.out.println("You ...
Feb 5, 1997 ... For example, the following program would fail at runtime: <pre> class SuperInitBug { static class S { void hi() { System.out.println("You ...
Oracle Java is the #1 programming language and development platform. It reduces costs, shortens development timeframes, drives innovation, and improves application services.
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.
According to the actual Java specification, the following code would produce a compiler error: < code> abstract class Aclass {. public abstract Number giveMeANumber()In fact, I see some advantage in allowing this kind of change. The following discussion gives two examples
The problem I think is that IDE steps through all the code involved in string concat binding and j.l.i initialization and it's not fast enough in fastdebug build.For example, running com/sun/jdi/RedefineClearBreakpoint.sh with hs-rt product bits: 19 seconds.
Following example shows that if Long.MAX_VALUE is used as a parameter for this constructor then this constructor creates object with less then 1970 year in the string representation.
User code that wants to indicate that some error has occurred during initialization should use some other exception type. The no-arg and String-bearing constructors initialize the "cause" to null, which results in subsequent calls to initCause() always throwing IllegalStateException.