Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » understanding access rules and forbidden, discouraged reference
understanding access rules and forbidden, discouraged reference [message #817106] Fri, 09 March 2012 16:41 Go to next message
john miltone is currently offline john miltoneFriend
Messages: 11
Registered: October 2011
Junior Member
Hello all,


Can you help me to understand a few options in Eclipse please. I read all the web and help content but I never find a good response for understand.

There is 2 options in : ECLIPSE > windows > preferences > Java > Compiler > Errors/Warnings > Deprecated and restricted API :

- Forbidden reference (access rules)
- Discouraged reference (access rules)


Can you tell me who fix the forbidden and Discouraged reference and where is implementing ?

Where is the access rules ?


Great thank for you and my knowledge of eclipse


Re: understanding access rules and forbidden, discouraged reference [message #818797 is a reply to message #817106] Mon, 12 March 2012 05:50 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
When a jar is added into the build path, one can add these access restrictions to some of the packages or classes in the jar. If you are doing PDE development, PDE will add these automatically depending upon the exported packages from the plugin.
Re: understanding access rules and forbidden, discouraged reference [message #818978 is a reply to message #818797] Mon, 12 March 2012 10:38 Go to previous messageGo to next message
john miltone is currently offline john miltoneFriend
Messages: 11
Registered: October 2011
Junior Member
Hello Satyam,

OK for Added access restrictions in import or PDE development but who these access restrictions ?
Re: understanding access rules and forbidden, discouraged reference [message #819187 is a reply to message #818978] Mon, 12 March 2012 15:51 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
You can add it yourselves from the build page. Eclipse automatically adds this for the classes from the JRE's library. The internal classes shouldn't be exposed to users and hence this helps.
Re: understanding access rules and forbidden, discouraged reference [message #820636 is a reply to message #819187] Wed, 14 March 2012 11:21 Go to previous message
john miltone is currently offline john miltoneFriend
Messages: 11
Registered: October 2011
Junior Member
OK. Access rules is define as I like. All is implementing in a build path project. After Eclipse work automatically.

Tank you for your help Satyam Kandula Smile
Previous Topic:Regular expression matched by two occurrences (one occurrence inside the other)
Next Topic:java command line to start a program
Goto Forum:
  


Current Time: Wed Apr 24 22:31:33 GMT 2024

Powered by FUDForum. Page generated in 0.03151 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top