-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support usage of internal PDE code #601
Comments
You're not the only one using PDE internals. This is a search in Oomph's workspace: There are often no good alternatives. Converting to APIs now, after the fact, will just tend break what's working now for others using internals. And who is going to create new APIs along with a promise to maintain them forever? If someone breaks such an API later, very often you can work around that with reflection (which makes it even hard to notice a problem until runtime).... |
Agree with this assessment ! |
Instead of this methods I suggest to use OSGi standard methods to obtain a OSGi service. For often used services I suggest to use an OSGi
I assume you are referring to
I assume you mean Depending on which headers you are querying, |
thanks @HannesWell! this is really useful. I will get the product focal to get more information to gain clarity on your questions, or they might respond to those directly here. |
Thank you @HannesWell - essentially our code is given an IProject and we want to get more information from it. So we use getBundleDescription to get the symbolic name through API, but we want the exact version string from the manifest, which we do roughly like this:
I've cut out quite a few intervening lines where we access other information. |
For the version, can't you just use |
A product, which conducted a code scanning reported that it uses a number of internal programming interfacing for lack of exported and documented APIs to meet their desired outcome. These are:
Are there better / external aletrnatives? If not, can we covert these into APIs? If cannot, can we make sure (by putting a comment in those APIs or so) so as not to deprecate/announce/remove them without giving a replacement?
The text was updated successfully, but these errors were encountered: