Community
Participate
Working Groups
I20050118-1015 @Annot(value="Hello", count=-1) @interface Annot { String value(); int count(); } The ITypeBinding for @Annot does not provide the declared elements/methods. #getDeclaredMethods() returns an empty array, instead of method bindings for value() and count().
I will investigate.
Right now the problem is that the specification of the getDeclaredMethods() doesn't cover annotation type declaration. The implementation is in line witht the specs. I ask Jim to add the annotation type declarations as a valid type that can return declared methods. Should be fixed today.
Updated spec for ITypeBinding.getDeclaredMethods() to say that it will return IMethodBindings for its annotation type members.
Fixed and released in HEAD. Regression test added.
Verified in I20050215-2300