Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.7
-
None
Description
When constructing an AssertionError for example, it has a public constructor taking Object and a private constructor taking String. The static compiler "chooses" the private constructor over the public one and this results in a compile error.
@groovy.transform.CompileStatic void doIt() { //Cannot call private constructor for java.lang.AssertionError. However, it should call AssertionError(Object) throw new AssertionError("abc") }
Attachments
Issue Links
- links to