JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... This is a problem because Java allows subclass methods to be ... In the code for the Inner constructor, you use an accessor method to ...
Feb 5, 1997 ... This is a problem because Java allows subclass methods to be ... In the code for the Inner constructor, you use an accessor method to ...
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.
8-defer-request : The analysis that precedes the bad code generation and the code generation itself are both complex, and to address this problem would need to interact with other passes of the compiler which handle the capture of local variable into local classes. This bug cannot currently be encountered because instanciation of the containing local class from within a lambda causes the ...
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.
JDK-8193302 : Javac AssertionError: typeSig ERROR on usage of @Generated Type: Bug Component: tools Sub-Component: javac Affected Version: 9,9.0.1,10 Priority: P3 Status: Closed Resolution: Fixed OS: generic CPU: x86_64 Submitted: 2017-12-08 Updated: 2018-06-30 Resolved: 2018-06-13
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.Example: import java.math.BigInteger
JDK-8145181 : Compile Failure with Stream processing and String Concatenation
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.
With the exception of `Character`, the box classes also have constructors that take a `String` argument. These parse and convert the string value and return a new instance of the box class. A `valueOf` overload taking a `String` is the equivalent static factory method for this constructor.
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.
One of the coding guidelines from "Effective Java" and elsewhere is to not call overridable methods from a constructor. A compiler is an in excellent position to perform this kind of check.