Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 116656 - [jres] JRE containers on build path should have default access rules
Summary: [jres] JRE containers on build path should have default access rules
Status: RESOLVED DUPLICATE of bug 163444
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 121091 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-16 08:31 EST by Tim Ellison CLA
Modified: 2006-11-14 15:21 EST (History)
4 users (show)

See Also:


Attachments
Suggested 1.4.2 access rules for a JRE container (2.61 KB, text/plain)
2005-11-16 08:32 EST, Tim Ellison CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Ellison CLA 2005-11-16 08:31:31 EST
When adding a JRE System Library to the build path the library should be set up
with access rules that discourage access to non-API packages; this would be of
great help to application developers by identifying areas of code that are not
portable across Java implementations.

I'll attach a suggested set of rules for a 1.4 JRE, the list would be slightly
different for 1.5 etc.
Comment 1 Tim Ellison CLA 2005-11-16 08:32:36 EST
Created attachment 30066 [details]
Suggested 1.4.2 access rules for a JRE container
Comment 2 Jerome Lanneluc CLA 2005-11-16 08:50:50 EST
Moving to JDT Debug
Comment 3 Darin Wright CLA 2006-01-05 11:07:39 EST
Martin, I'm not sure this should be up to debug to do this. It seems more like a "development" issue that JUI might want to handle? However, this will be specific to the JRE being installed as well, which might be a nightmare to maintain.
Comment 4 Martin Aeschlimann CLA 2006-01-05 11:37:46 EST
I don't really see where JDT.UI could help here. I would rather prefer to avoid JRE specific features in JDT.UI. We could add a import/export functionality to the access rule configuration page, if that helps.

In the example, the access rules are applied to the JRE container. Maybe it would be better to apply the rules internally to each of the entries and so make the feature JRE instance specific.
UI-wise that would mean to offer a button on the JRE-Install Dialog that offers to initialize the access rules with the suggested rules.
Comment 5 Darin Wright CLA 2006-01-05 11:38:38 EST
*** Bug 121091 has been marked as a duplicate of this bug. ***
Comment 6 Darin Wright CLA 2006-01-31 12:04:16 EST
Not planned for 3.2
Comment 7 Darin Wright CLA 2006-11-14 15:20:15 EST
Re-opening to mark as dup.
Comment 8 Darin Wright CLA 2006-11-14 15:21:55 EST
Rather than associate rules with JREs, we plan to associate access rules with execution environments.

*** This bug has been marked as a duplicate of 163444 ***