I noticed this setting in Eclipse's compiler settings. How is this different than a "forbidden reference"?
From a comment on the accepted answer on how to open the find type dialog programmatically in eclipse
You get a discouraged access warning whenever you reference a type in a package that is not part of the API, typically these are *.internal packages. "Discouraged access" is an indicator that you should look for an API alternative if possible. Be aware that you might be vulnerable to change in later versions of Eclipse. See help.eclipse.org/galileo/index.jsp for more details – Rich Seller
Eclipse has Internal packages that are not intended for use by downstream plug-ins. However, these packages are visible to downstream plug-ins by default.
A discouraged reference is a reference in your code to one of the Eclipse internal packages.
You can find more information in the Plug-in Development Environment Guide -> Tools -> Editors -> Plug-in manifest editor -> Plug-in run time -> Access Rules.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With