[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] Resolver Problem with guava and e4 (javax.annotation)
- From: Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx>
- Date: Wed, 11 Jun 2014 00:52:10 +0200
- Delivered-to: email@example.com
- User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
On 11.06.14 00:44, Neil Bartlett wrote:
> a) Removing the javax.annotation import would surely not work, since
> then you wonât have any visibility of that package at all. I assume
> resolver.problem does actually use this package?
My proposal was not to remove it but to make it version less but then
this needs to be done by ALL bundles - most important those who process
the javax.annotation (=e4.core.di)
> b) Modifying Guava would require repackaging it and maintaining that
Well we already get that from orbit so it is repackaged
> I propose a third solution: import package javax.annotation from your
> bundle but donât require version 1. The package is after all part of
> JavaSE since at least Java 1.6, and the JRE exports everything as
> version zero.
I can not do that currently because the upstream project e.g. e4.core.di
(see below) require 1.0.0 and then e.g. this package will not call
methods annotated with @PostConstruct!
I guess it would have been best from the beginning if all bundles would
have imported it without a version but it is too late for that now.
> Manifest-Version: 1.0
> Bundle-Localization: plugin
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> Built-By: e4Build
> Bundle-SymbolicName: org.eclipse.e4.core.di
> Import-Package: javax.annotation;version="1.0.0",javax.inject;version=