You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suggestion issue for Variable Arity Parameters #4267
class Test {
static Foo foo = new Foo();
static Foo bar = new Foo();
void test(Foo... foo) {
}
void test2() {
test(|); // cursor at "|"
}
}
When the cursor is in the "test()", and trigger suggestions using shortcut, "foo" and "bar" will appear in a dropdown list for selection, there is no problem. After choosing one,the code is:
test(foo,|) ; // cursor at "|"
Now when I try to trigger suggestion, "foo" and "bar" not appear.
Indeed completion doesn't work immediately after the ,. Eclipse actually exhibits the same behavior, so this is an upstream issue.
However, completion works if you add a space after the comma, like :
Activity
fbricon commentedon Nov 24, 2025
Indeed completion doesn't work immediately after the
,. Eclipse actually exhibits the same behavior, so this is an upstream issue.However, completion works if you add a space after the comma, like :
fbricon commentedon Nov 24, 2025
Opened eclipse-jdt/eclipse.jdt.core#4649
stanstan324234 commentedon Nov 24, 2025
@fbricon
Completion after a comma and space shows all suggestions(including incorrect suggestions). Only the first completion is correct. I'm using VScode.
jarthana commentedon Feb 2, 2026
This is fixed and will be part of the next nightly build.
fbricon commentedon Feb 3, 2026
Fix now available in pre-releases. Thanks @jarthana!