Skip to main content

[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

Do you have import package

 javax.inject;version="1.0.0"

and updated your bundle to use Java 11 (BREE + classpath)?


Am 17.05.21 um 14:45 schrieb Lars Vogel:
Hi,

in multiple projects of an RCP client I see the following error:

Access restriction: The type 'Inject' is not API (restriction on
required library
'C:\Users\Lars\workspace\client\.metadata\.plugins\org.eclipse.pde.core\.bundle_pool\plugins\javax.inject_1.0.0.v20091030.jar')

If I check the iavax.inject bundle, the package is exported:

Export-Package: javax.inject;version="1.0.0"

I see that the javax.inject has some access rules defined, see image.
I can also modify them but after a restart the access rules are
restored.

Does anyone know where these access rules are coming from? I do not
see anything related in the MANIFEST.MF of the javax.inject plug-in.

Best regards, Lars


_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/pde-dev



Back to the top