proofpoint/platform — Issue #45: Duplicate keys in config files do not throw an error
Author: markkent
Created: 2011-10-12 14:11:57+00:00
State: open

Imported from old tracking system, originally raised P2 by altitude:

As seen in bootcamp2: having the following lines in a configuration file does not throw an error:

config.property=foo
config.property=bar

=======

Comment from kmcmurtrie:

Easy fix but I don't know what to do with the error:
Properties p = new Properties()
{
@Override
public synchronized Object put(Object key, Object value) {
if (super.containsKey(key))
throw new RuntimeException('\'' + key.toString() + "' reassigned from '" + get(key) + "' to '" + value + '\'');
return super.put(key, value);
}
};