On 8/9/2011 4:16 AM, Jörn Kottmann wrote:
On 8/9/11 4:59 AM, [email protected] wrote:
@@ -263,7 +262,7 @@ public class DictionarySerializer {
AttributesImpl dictionaryAttributes = new AttributesImpl();
- if (casesensitive) {
+ if (!casesensitive) {
dictionaryAttributes.addAttribute("", "",
ATTRIBUTE_CASE_SENSITIVE,
"", String.valueOf(casesensitive));
}
A dictionary is either case sensitive, or it is not. We should always
write the flag.
Lets remove the if around the addAttribute call.
Jörn
No problem, I just realized one of the powers of XML. You have full
backward compatibility as long as you don't add strange required elements.
ie: you could have an address book done through XML and later add a
birth date element and your older apps could still load the relevant
information. Only down side is the lack of knowing about the birth
date... . Here we are adding an attribute to a dictionary; that is
mostly set case sensitive in the older code. We are just allowing the
flag to be carried over.
James