Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364288 - API tools should warn the user when adding new dependencies
Summary: API tools should warn the user when adding new dependencies
Status: CLOSED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PDE API Tools Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-21 05:32 EST by Laurent Goubet CLA
Modified: 2019-11-14 03:17 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Goubet CLA 2011-11-21 05:32:06 EST
I recently added a dependency to a new library/bundle to my plugins, using import-package towards things that the plugins did not previously knew. Doing this, I broke any adopter of my previous API ... without even realizing it. These clients were greeted with a ClassNotFoundException as soon as they updated and launched their tool with my new API (see also bug 364265).

API tools should probably have a warning for "new dependencies" as these might very well break adopters of the API. The workaround I found, changing from "import-package" to "require-bundle" and reexporting the new dependency, is no more than a hack for "Java application" launches within Eclipse, and will still fail for standalone usages of my plugins.
Comment 1 Lars Vogel CLA 2019-11-14 03:17:22 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.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.