Bug 560080 - PDE Classpath Container & package import
Summary: PDE Classpath Container & package import
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.12   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-13 04:33 EST by Christian Dietrich CLA
Modified: 2024-01-26 13:57 EST (History)
2 users (show)

See Also:


Attachments
Editor Behaviour (66.53 KB, image/png)
2020-02-13 04:33 EST, Christian Dietrich CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Dietrich CLA 2020-02-13 04:33:11 EST
Created attachment 281808 [details]
Editor Behaviour

In Xtext we have plugins like "org.eclipse.xtext.ui" that import packages like "com.ibm.icu.text","org.apache.log4j", "org.apache.commons.lang"

when i now add "org.eclipse.xtext.ui" to the required bundles of a plugin project, and open the class "org.eclipse.xtext.ui.editor.quickfix.ISimilarityMatcher"
and hover on "org.apache.commons.lang.StringUtils"
then the tooling thinks this is "com.sun.xml.internal.ws.util.StringUtils"
if i have a look at the "Plugin-Dependencies" container the resolved bundles for the package imports are not there so the JDT tooling cannot resolve the "org.apache.commons.lang"-stuff.

is this a bug? is this a feature? do i miss something?
Comment 1 Andrey Loskutov CLA 2020-02-13 10:35:20 EST
Same in 4.12. This must be a bug in bundle dependencies resolving in PDE - at runtime, everything works. Julian - I believe you've hunted similar issues in the past?
Comment 2 Julian Honnen CLA 2020-02-14 02:22:55 EST
At first glance, this looks like bug 534082 to me.

Your plugin project's classpath container doesn't include the non-transitive dependencies from xtext.ui so JDT won't find o.a.commons.lang.
Comment 3 Eclipse Genie CLA 2022-02-04 00:39:29 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Eclipse Genie CLA 2024-01-26 13:57:21 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.