Community
Participate
Working Groups
Example 1: --- class bar { new() { this(true) } } --- Example 2: --- class foo extends bar { new() { super(true) } } --- In both cases the error message is "Cannot access local variable bar with parentheses". A message such as "Constructor with parameters (Boolean) could not be found" would be more appropriate.
Still an issue IMHO. With Example 1: marker: Multiple markers at this line - Invalid number of arguments. Expected bar - Recursive constructor invocation Quick fix: - Change to this (twice) With Example 2: marker: - Invalid number of arguments. Expected bar Quick fix: - Change to super (twice) Java says: Example 1: - The constructor bar(boolean) is undefined Example 2: - The constructor bar(boolean) is undefined
Fixes pushed to gerrit. - Quickfixes that don't change the code are filtered - Error messages have been improved
Requested via bug 522520. -M.