1

Resolved

Incorrect code in Tag.Register()

description

Issues caused by overlapping keys. Code is probably designed with Java's Map in mind, might be some differences between Map and Dictionary.
Should be changed to:

private static Tag Register(Tag tag)
{
lock (_tags)
{
    if (_tags.ContainsKey(tag._tagName))
    {
        _tags[tag._tagName].SetAncestor(_defaultAncestor._tagName);
    }
    else
    {
        _tags.Add(tag._tagName, tag);
    }
}
return tag;
}

comments

GeReV wrote Jul 15, 2010 at 6:29 PM

Issue fixed.

** Closed by GeReV 07/15/2010 11:29AM

GeReV wrote Jul 15, 2010 at 6:29 PM

Issue fixed.

GeReV wrote Jul 15, 2010 at 6:30 PM

Issue fixed.

** Closed by GeReV 07/15/2010 11:30AM

GeReV wrote Jul 15, 2010 at 6:30 PM