Skip to main content



      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 11:41 Go to next message
Eclipse UserFriend
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 01:50 Go to previous messageGo to next message
Eclipse UserFriend
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 06:38 Go to previous messageGo to next message
Eclipse UserFriend
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 11:51 Go to previous messageGo to next message
Eclipse UserFriend
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 07:21 Go to previous message
Eclipse UserFriend
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: Sun May 18 20:09:27 EDT 2025

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

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

Back to the top