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 ...
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.
There has not been any exception on this error. They look into the source code portion and the write sequence is as follows. ..... SocketChannelImpl.write ...
fails with: Test.java:11: error: incompatible types: cannot infer type-variable(s) T,U.type-variable: CAP#1 extends String from capture of ? extends String 1 error. but if the lambda is implicit: e -> e.trim(), it compiles just fine.
JDK-4916704 - simple java awt program hangs in constructor for J2SE1.4.1_02/1.4.1_03.But since the function error'd out, the values are not set, and we could end up spinning in a loop forever (basically, waiting for a value of "0" to become non-null).
Javac is internally using a 'compound type' and displaying that in error messages.STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Enter the code in netbeans IDE. Look at the error message and its description of the type of the ternary expression.
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.