Community
Participate
Working Groups
MethodRefParameter nodes should support variable arity references like "#foo(String...)" and "#foo(String... args)". This problem is a follow-on from bug 83393. The 1.5 spec for the Javadoc tool does not mention the possibility of a variable arity indicator in method references. However, the 1.5 Javadoc tool itself does indeed support it. Since it makes sense to have a way to explicitly refer to variable arity methods, it seems more likely that the Javadoc spec is wrong in this case.
Added API to MethodRefParameter: public static final SimplePropertyDescriptor VARARGS_PROPERTY; public boolean isVarargs(); public void setVarargs(boolean variableArity); I've released changes to specs, basic node implementation, and basic tests. Parts that also require changing: - AST parser and binding resolver - AST rewriter - downstream clones of NaiveASTFlatterner
I'll do AST parser and binding resolver changes
added support to rewriter > 20050314
Done for AST parser (changes done in ASTConverter) and binding resolver (no change was requested for this new API). [jdt-core-internal] Test case added in ASTConverterJavadocTest.
Added support to jdt.ui's ASTFlattener.
Verified in I20050330-0500