This content has been marked as final.
Show 3 replies
-
1. Re: ClassInfo and array annotations
kabirkhan Nov 30, 2006 7:24 AM (in response to adrian.brock)I must have got confused somewhere. If this is a problem, I can turn it off
-
2. Re: ClassInfo and array annotations
adrian.brock Nov 30, 2006 7:37 AM (in response to adrian.brock)Yes please. This would make it consistent with the reflection api.
Although I don't know why somebody would want to retrieve the annotations
on an array class?SomeObject[] test = new SomeObject[0]; Class clazz = test.getClass(); // Empty System.out.println(Arrays.asList(clazz.getAnnotations())); // The annotations System.out.println(Arrays.asList(SomeObject.class.getAnnotations()));
-