Hi Chris –
Here are some more specifics:
1. We have created an OSGI-ified jar (com.cra.osgi.xmlbeans_2.3.0.jar)
for the Apache XML Beans library
2. We have a custom Target Platform
defined in Eclipse 3.4 that includes that plug-in (and 67 other plug-ins)
3. We have a class (call it FooBar.java) that
imports the XmlObject and XmlException classes in the org.apache.xmlbeans
package that is exported by the com.cra.osgi.xmlbeans_2.3.0.jar plugin
4. We have a plug-in (call it com.cra.foo)
that contains FooBar.java and specifies the org.apache.xmlbeans package in its
list of imported packages
5. Under Eclipse 3.4, FooBar.java compiles
cleanly
6. When we open the workspace in Eclipse
3.5, FooBar.java has compilation errors related to the import of XmlObject and
XmlException
6a. The exact error reported by Eclipse is
“Access restriction: The type XmlException is not accessible due to
restriction on required library C:\dev-svn\Project\TargetPlatform\com.cra.osgi.xmlbeans_2.3.0.jar”
7. If we remove the package level
import and specify the com.cra.osgi.xmlbeans_2.3.0.jar as a required plugin,
things compile cleanly in Eclipse 3.5
I’m trying to boil this down to a
simple example but it’s hard given the size and complexity of our current
environment. We have a similar problem with another OSGI-ified jar for another
third-party library.
- Chris