Bug 97589 - [jres] Native library settings seem to disappear
Summary: [jres] Native library settings seem to disappear
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 110171
Blocks:
  Show dependency tree
 
Reported: 2005-05-31 12:55 EDT by David Saff CLA
Modified: 2009-08-30 02:41 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Saff CLA 2005-05-31 12:55:31 EDT
In RC1.

1) Pull up the properties on a project.  
2) Go to Libraries, and drill down to JRE System Library > rt.jar > Native
Library Location.
3) Select "Edit..."
4) Browse to any folder that has no libraries in it ("My Documents" works well)
5) Hit OK: My Documents is displayed under rt.jar
6) Hit OK to close Properties
7) Re-open properties, and drill back down: rt.jar shows Native Library
Location: (None)
Comment 1 Dirk Baeumer CLA 2005-05-31 13:11:34 EDT
This is a bug in launching. We set the attribute correctly (verified by
debugging it) but the JRE container doesn't persit it. So the information is lost.

Moving to Debug.
Comment 2 Darin Wright CLA 2005-05-31 14:00:15 EDT
The JREContainerInitializer gets a callback to requestClasspathContainerUpdate 
with the new settings. We need to look for changes to the native attribute.
Comment 3 Darin Wright CLA 2005-06-03 12:55:18 EDT
CC'ing Dirk & Philippe.

The JRE container does not currently persist associcate native library or 
access rule annotations that the build path page allows to append to JRE 
library entries. The "installed JREs" edit dialog only allows for javadoc and 
library location to be editor, so we are inconsistent in this manner.

This would require the LibarayLocation be changed (API additions) to allow for 
the persistence of access rules and native library locations. Origianlly, I 
thought the classpath would simply persist this info, and thus the disconnect.

I suggest that we defer this feature for 3.1, to avoid additional API changes. 
However, is there some way we could have the buildpath page disallow access 
rule and native entry attributes for JRE containers?
Comment 4 Dirk Baeumer CLA 2005-06-03 13:05:01 EDT
Martin, can we look into filtering them in the UI for 3.1. The user will still
be able to set access restrictions on the container itself, but not on the
individual Jar. And having a native library for the JRE is uncommon as well.
Comment 5 Darin Wright CLA 2005-06-07 11:46:27 EDT
Will consider in 3.2. For 3.1, access rules and native libs will not be 
allowed on individual JRE archives (only the root container).
Comment 6 Darin Wright CLA 2005-09-13 11:17:44 EDT
Opening for 3.2. JCORE may need to provide mementos for extra classpath 
attributes such that we can persist them. The contributor of the attribute 
should provide the memento so all clients do not have to know how to 
persist/restore the attributes.
Comment 7 Jerome Lanneluc CLA 2005-09-21 09:59:02 EDT
Entered bug 110171 for the JDT Core side of this bug.
Comment 8 Darin Wright CLA 2006-04-05 14:36:50 EDT
Deferred again...forgot this requires new API on LibraryLocation to set/persist a native location on a LibraryLocation. Current behavior is workable as a native can be set on the container itself.
Comment 9 Eclipse Webmaster CLA 2009-08-30 02:41:46 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.