[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [pde-dev] Access restriction: The type 'Inject' is not API
|
Importing any API via "require bundle" is always prone to errors, will
cause problems on the long run and should be avoided under all
circumstances.
If one is importing a public API like javax.inject, a proper import
range[1] is crucial as well (as we have seen with the recent slf4j
version problems in platform).
[1] https://enroute.osgi.org/FAQ/210-semantic_versioning.html
Am 18.06.21 um 16:45 schrieb Lars Vogel:
Thanks Wim, very interesting to read.
I think I found the cause for this error based on your links. Some
plug-ins were defining a versioned plug-in dependency to
javax.inject and had at the same time an unversionized javax.inject as
package dependency causing the "same package available twice" from your
link.
THanks to Christoph and Wim for the help
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#m_6260855775141125366_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, May 19, 2021 at 6:44 PM Wim Jongman <wim.jongman@xxxxxxxxx
<mailto:wim.jongman@xxxxxxxxx>> wrote:
Are you looking at this?
Andrey Loskutov loskutov@xxxxxx <mailto:loskutov@xxxxxx> via
<https://support.google.com/mail/answer/1311182?hl=en>
eclipse.org <http://eclipse.org>
Fri, Apr 16, 7:01 PM
to platform-dev
TL;DR: your dependencies are not OK for Java 11 module hell.
See classic answer from Stephan:
https://stackoverflow.com/a/53824670
<https://stackoverflow.com/a/53824670>
and a shorter version from Holger:
https://stackoverflow.com/a/55572922
<https://stackoverflow.com/a/55572922>
Kind regards,
Andrey Loskutov
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx <mailto:pde-dev@xxxxxxxxxxx>
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/pde-dev
<https://www.eclipse.org/mailman/listinfo/pde-dev>
--
Eclipse Platform project co-lead
CEO vogella GmbH
Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx
<mailto:lars.vogel@xxxxxxxxxxx>, Web: http://www.vogella.com
<http://www.vogella.com>
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/pde-dev