JDK-6768932: Add support for multiline diagnostics
Nov 7, 2008 ... Examples: 1) Type-system diagnostic: Test. ... 1 error 2) Method resolution diagnostics Test.java:6: no suitable method m found for (String,String) ...
Nov 7, 2008 ... Examples: 1) Type-system diagnostic: Test. ... 1 error 2) Method resolution diagnostics Test.java:6: no suitable method m found for (String,String) ...
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.
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.
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.
Description. GenericSignatureFormatError only has a single constructor which takes no arguments. Per the conventions discussed in java.lang.Throwable, GenericSignatureFormatError should also include a constructor which takes a string as a message.
Type: Bug. Component: core-libs. Sub-Component: java.math.If the String passed to the BigInteger(String, int) constructor begins with "-- " (two minus signs), or "-0-" then a BigInteger object is created even though such a String is badly formatted.