[BLUEJ-392] Varargs parameter not recognised as array by code completion / error message enhancer
Reported on the Blueroom by Rick Gee. This code:
{noformat} public void m(String...listName) { listName.equalsIgnoreCase("abc"); } {noformat}
Displays the error:
{noformat} cannot find symbol - method equalsIgnoreCase(java.lang.String); maybe you meant: equalsIgnoreCase(String) {noformat}
... which is clearly wrong. BlueJ sees the type of listName as String rather than as String[].
Issue metadata
- Issue type: Bug
- Priority: Low
- Fix versions: 3.0.7