This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | [Introduce parameter] problem with vararg parameter | ||
---|---|---|---|
Product: | java | Reporter: | ssazonov |
Component: | Refactoring | Assignee: | Ralph Ruijs <ralphbenjamin> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | jiriprox |
Priority: | P4 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
before
after |
Description
ssazonov
2013-10-18 12:10:53 UTC
Created attachment 141249 [details]
before
Created attachment 141250 [details]
after
Reproducible, but not sure what the best fix would be. The other major IDEs do not solve it either I'm not sure about the best fix as well One solution would be to to change all call m(1,"",""); to m(1, new String[]{"1", "2"}); but it will destroy the beauty of varargs. Another solution would be not to perform refactoring is such case or at lest show warning. e.g. when introducing parameter of type T when there is vararg of type T... This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |