Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [pde-dev] Import difference between 3.4 and 3.5?

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

 
 
 
 
THIS MESSAGE IS INTENDED FOR THE USE OF THE PERSON TO WHOM IT IS ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you are not the intended recipient, your use of this message for any purpose is strictly prohibited. If you have received this communication in error, please delete the message and notify the sender so that we may correct our records.
 

 
 

From: pde-dev-bounces@xxxxxxxxxxx [mailto:pde-dev-bounces@xxxxxxxxxxx] On Behalf Of Chris Aniszczyk
Sent: Tuesday, July 28, 2009 4:01 PM
To: Eclipse PDE general developers list.
Subject: Re: [pde-dev] Import difference between 3.4 and 3.5?

 

On Tue, Jul 28, 2009 at 2:58 PM, Chris Hopkins <chopkins@xxxxxxx> wrote:

Hi all –

We are looking into moving from Ganymede (3.4) to Galileo (3.5) for our plug-in development. However, what used to work in 3.4 does not work in 3.5. I start up 3.5 and open my workspace and I’m running into issues with plug-ins in our defined Target Platform. We created two plug-ins for third party libraries that we use. We added a Manifest.mf for that exports all of the available packages in each library. These libraries work great in 3.4 if we specify the appropriate packages using the PDE tooling (Dependencies tab). However, in 3.5 we need to specify the plug-in itself as a required dependency to get the source code to compile.

 

Can you be more specific about your problem? A small example maybe?

 

In Eclipse 3.5, there's a new 'Target Platform State' view which shows you how things are wired in your workspace. That may help to start debug this issue a bit.

 

Cheers, 


--
Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk


Back to the top