Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320459 - BundleContext.getProperty() uses stale System properties
Summary: BundleContext.getProperty() uses stale System properties
Status: CLOSED DUPLICATE of bug 319679
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: unspecified   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 00:44 EDT by Sahoo CLA
Modified: 2010-07-21 09:18 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sahoo CLA 2010-07-21 00:44:06 EDT
Build Identifier: 3.5.1.R35x_v20090827

Javadoc of BundleContext.getProperty() says the following:
Returns the value of the specified property. If the key is not found in the
Framework properties, the system properties are then searched. The method
returns null if the property is not found.

It seems Equinox takes a snapshot of System properties when the framework is launched and uses that in the implementation of BundleContext.getProperty. The spec does not specify such behavior.

Reproducible: Always
Comment 1 Thomas Watson CLA 2010-07-21 09:18:30 EDT

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