JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... code for inner class constructors in the wrong order. Therefore ... The problem would be solved if you rewrote the constructors as follows: Method ...
Feb 5, 1997 ... ... code for inner class constructors in the wrong order. Therefore ... The problem would be solved if you rewrote the constructors as follows: Method ...
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.
EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Code should compile without error. ACTUAL - javac rejects the code, as shown in the description. ERROR MESSAGES/STACK TRACES THAT OCCUR : F.java:4: illegal reference to static field from initializer.
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.
java version "1.4.0-beta" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65) Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode). If the String passed to the BigInteger(String, int) constructor begins with "-- " (two minus signs), or "-0-" then a...
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.