Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 446173 - Object that are not Strings are added to a Properties instance.
Summary: Object that are not Strings are added to a Properties instance.
Status: CLOSED DUPLICATE of bug 445122
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 445963
  Show dependency tree
 
Reported: 2014-10-07 10:51 EDT by Thomas Hallgren CLA
Modified: 2014-10-07 12:01 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 Thomas Hallgren CLA 2014-10-07 10:51:24 EDT
The constructor of class org.eclipse.osgi.internal.framework.EquinoxConfiguration violates the contract of java.util.Properties. Javadoc says:

"The Properties class represents a persistent set of properties ... Each key and its corresponding value in the property list is a string."

The constructor adds a NULL_CONFIG object using the inherited Hashtable.put method. This leads to problems down the line for code that assumes that a Properties instance contains String only. All Buckminster builds are now crashing to name one such problem.

The fact that the NULL_CONFIG implements the toString() method doesn't help. (although it did make finding the problem difficult. An unquoted null printout in the debugger is usually null).

This is a regression introduced when attempting to fix another regression in bug 441377. See this commit: 

http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?h=R4_4_maintenance&id=d44e2c55de7601046b30006294c06d0591ae833a
Comment 1 Thomas Watson CLA 2014-10-07 12:01:03 EDT

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