APIs using Properties may ignore defaults
Opened 6 years ago
Last modified 6 years ago
#1491acceptedtask
APIs using Properties may ignore defaults
Reported by:zzzOwned by:zzz Priority: maintenance Milestone: 0.9.20 Component: api/general Version: 0.9.18 Keywords: easy Cc:
Parent Tickets:
Sensitive: no
Description
Our APIs that take a Properties argument may ignore defaults in those Properties, apparently because we iterate through the underlying Hashtable's entry set to copy the entries.
While less efficient, we must apparently use propertyNames() or stringPropertyNames() to get the defaults. Either that, or document that defaults are ignored.
Review at least core, router, streaming, and i2ptunnel.
ref:
http://zzz.i2p/topics/1613?page=8#p9540
http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html