Re: Guaranteed order of annotations?

2017-02-03 Thread Gunnar Morling
(@NotNull(order=0) @Email(order=1)) which is more verbose of >>>> course. >>>> >>>> --Gunnar >>>> >>>> >>>> >>>> >>>> >>>> 2017-01-13 21:15 GMT+01:00 Yuri Gaevsky <ygaev...@azulsyste

Re: Guaranteed order of annotations?

2017-01-23 Thread joe darcy
4 PM To: core-libs-dev@openjdk.java.net Subject: Guaranteed order of annotations? Hi, Is there any order guaranteed in which an element's annotations are returned by AnnotatedElement#getDeclaredAnnotations()? Specifically, is this the order in which the annotations are given in the sourc

Re: Guaranteed order of annotations?

2017-01-17 Thread Gunnar Morling
; ordering in Core Reflection for Annotations' [*]. >>> >>> Best regards, >>> -Yuri >>> >>> [*] https://bugs.openjdk.java.net/browse/JDK-8010679 >>> >>> >>> -Original Message- >>> From: core-libs-dev [mailto:core-l

Re: Guaranteed order of annotations?

2017-01-17 Thread Joseph D. Darcy
- From: core-libs-dev [mailto:core-libs-dev-boun...@openjdk.java.net] On Behalf Of Gunnar Morling Sent: Friday, January 13, 2017 08:14 PM To: core-libs-dev@openjdk.java.net Subject: Guaranteed order of annotations? Hi, Is there any order guaranteed in which an element's annotati

Re: Guaranteed order of annotations?

2017-01-13 Thread Gunnar Morling
f > Of Gunnar Morling > Sent: Friday, January 13, 2017 08:14 PM > To: core-libs-dev@openjdk.java.net > Subject: Guaranteed order of annotations? > > Hi, > > Is there any order guaranteed in which an element's annotations are > returned by AnnotatedElement#getDeclaredA

RE: Guaranteed order of annotations?

2017-01-13 Thread Yuri Gaevsky
s-dev-boun...@openjdk.java.net] On Behalf Of Gunnar Morling Sent: Friday, January 13, 2017 08:14 PM To: core-libs-dev@openjdk.java.net Subject: Guaranteed order of annotations? Hi, Is there any order guaranteed in which an element's annotations are returned by AnnotatedElement#getDeclaredAnnotations()? Sp

Re: Guaranteed order of annotations?

2017-01-13 Thread Joel Borggrén-Franck
Iirc there are no guatantees but we try as best as we can to maintain source code order. It has been a couple of years now but I think there are a few corner cases with repeating annotations. Cheers /Joel On Fri, 13 Jan 2017 at 18:14, Gunnar Morling wrote: > Hi, > > > >

Guaranteed order of annotations?

2017-01-13 Thread Gunnar Morling
Hi, Is there any order guaranteed in which an element's annotations are returned by AnnotatedElement#getDeclaredAnnotations()? Specifically, is this the order in which the annotations are given in the source code? Section 9.7.5. of the JLS ("Multiple Annotations of the Same Type") makes a