Hey not sure if you realise this but when you reply to these messages 
through the list, the reply isn't posted on GitHub and the OP probably 
never sees it.

On Thursday, 8 January 2015 13:40:10 UTC-5, Sam Berlin wrote:
>
> AFAIK, there is no other version of javax.inject.  This seems like an 
> issue with the framework that repackaged javax.inject at a different 
> version, despite not being the actual javax.inject.  If another 
> javax.inject came out at the new version, there's no reason Guice shouldn't 
> want to use it.  
>
> On Thu Jan 08 2015 at 1:30:15 PM dominic-jones <[email protected] 
> <javascript:>> wrote:
>
>> In the bundle manifest, Guice 3 specifies package dependencies on 
>> javax.inject and org.aopalliance.intercept. These are not constrained by 
>> version ranges however, making Guice very permissive in what versions of 
>> these jars it will accept.
>>
>> Unfortunately in our environment, one of our frameworks reveals a 
>> repackaged javax.inject at a version 2+ which Guice consumes. Another 
>> bundle relying on Guice (Peaberry) has a more specific version range that 
>> prohibits it from consuming javax.inject version 2. This results in 
>> Guice/Peaberry failing to see the same version of important annotations.
>>
>> I understand it to be osgi best practice to specify version ranges on 
>> package imports. A more specific range (at least something like (1.0,2]) 
>> would be preferable.
>>
>> Presently we can work around this issue by repackaging Guice with a 
>> stricter version import. 
>>
>> —
>> Reply to this email directly or view it on GitHub 
>> <https://github.com/google/guice/issues/891>.
>>   
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "google-guice-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/google-guice-dev.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to