[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: ClassInfo and array annotations

adrian@jboss.org do-not-reply at jboss.com
Thu Nov 30 07:37:15 EST 2006


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()));
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990012#3990012

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990012



More information about the jboss-dev-forums mailing list