[jax-rs-spec users] [jsr339-experts] Re: Re: Priority annotation build issue

From: Marek Potociar <>
Date: Wed, 13 Feb 2013 18:46:11 +0100

On Feb 12, 2013, at 7:51 PM, Bill Burke <> wrote:

> On 2/12/2013 12:04 PM, Sergey Beryozkin wrote:
>> On 12/02/13 16:30, Marek Potociar wrote:
>>> I have contacted the spec lead of Common Annotations API to release a
>>> new version. We'll see how it goes. Note however that Java EE 7
>>> requires Java SE 7.
>> Thanks Marek; we've agreed though to let the implementations that do not
>> necessarily target EE environments implement 2.0 API without forcing
>> them to move to SE 7, so to be honest, and IMHO, it has to be a a
>> consistent decision on behalf of this group to support this case, though
>> I'd obviously appreciate a good will gesture from the spec lead of
>> Common Annotations API -
>> Example, releasing a SE-6 targeted only version would not affect the
>> requirement for EE 7 deployments to have core artifacts built with SE7
>> and such
> Oh, I thought @Priority was an EE6-EE7 thing and not part of the JDK. I have concerns about this as well. There are a lot of slow moving customers/users as it pertains to the JDK version they use. I told you this before, but as recent as 9 months ago, I had somebody say they coudln't use Resteasy because it wasn't compiled to JDK 5.

The @Priority is in EE7 API, not in SE. It's just that the javax.annotation-api v1.2-b01 module that contains the annotation has been built with target "1.7". Thus using the module in 1.6 JDK compilations fails due to the unrecognised @Priority class version. Next release of the module should fix the issue.


> Bill
> --
> Bill Burke
> JBoss, a division of Red Hat