[scala-bts] #2138: NamespaceBinding does not define an "equals" method

----------------------+-----------------------------------------------------
Reporter: dcsobral | Owner: scala-xml_team
Type: defect | Status: new
Priority: normal | Component: XML support
Keywords: Namespace |
----------------------+-----------------------------------------------------
When generating strings for an XML, each element has its scope -- a
NamespaceBinding object -- compared to that of its parent. If they aren't
equal, a namespace is added to the string representation of that element.

Unfortunately, NamespaceBinding does define an "equals" method, which
means reference equality is used, with unfortunate consequences. Any code
that does not cache Namespaces will end up producing XMLs which repeat the
namespace.

NamespaceBinding is composed of two strings and a NamespaceBinding, so an
equals method can be trivially defined for it.

Re: [scala-bts] #2138: NamespaceBinding does not define an "equa

-----------------------------+----------------------------------------------
Reporter: dcsobral | Owner: scala-xml_team
Type: defect | Status: closed
Priority: normal | Component: XML support
Version: Unreleased-2.8.x | Resolution: fixed
Keywords: Namespace |
-----------------------------+----------------------------------------------
Changes (by extempore):

* cc: paulp@… (added)
* status: new => closed
* version: => Unreleased-2.8.x
* resolution: => fixed

Comment:

I made it a case class.

Copyright © 2013 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland