Order of annotation declarations

Kasper Nielsen kasperni at gmail.com
Fri Jul 19 14:05:59 UTC 2013


I haven't been able to find any info on this.
but is [Class|AnnotatedMember].getAnnotations() required to return the
annotations is order of declaration?

For example, if I have the following definition
public class Foo{}
Will Foo.class.getAnnotations() always return
[First, Second] or is it allowed to return them in any order like

-  Kasper

More information about the core-libs-dev mailing list