Opened 4 years ago

Closed 4 years ago

#17 closed defect (fixed)

signature problem

Reported by: martin Owned by: martin
Priority: major Milestone:
Component: code Version:
Keywords: Cc: martin

Description

current implementation (see source:src/main/java/de/unirostock/sems/xmlutils/ds/DocumentNode.java@5867e66#L412) respects attribute sequence and, thus, calculates different hashes for following nodes:

<a b="c" d="e" />
<a d="e" b="c" />

even if they are the same in our def of equality. sorting the attributes might solve this issue...

Change History (1)

comment:1 Changed 4 years ago by Martin Scharm <martin@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 864d2399981331b4102de9c952a6452a1bbb3e34:

attributes now stored in a tree map [fixes #17]

Note: See TracTickets for help on using tickets.
authorship