[YANGTOOLS-445] DTO equality appears to be broken by proxy Created: 14/Apr/15 Updated: 10/Apr/22 Resolved: 07/May/15 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Ed Warnicke | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2988 |
| Description |
|
I have two instances of a DTO with identical field values: ConnectionInfo [_localIp=IpAddress [_ipv4Address=Ipv4Address [_value=127.0.0.1], _value=[1, 2, 7, ., 0, ., 0, ., 1]], _localPort=PortNumber [_value=62679], _remoteIp=IpAddress [_ipv4Address=Ipv4Address [_value=127.0.0.1], _value=[1, 2, 7, ., 0, ., 0, ., 1]], _remotePort=PortNumber [_value=16640], augmentation=[]] The first is created with a Builder, the second comes back from the datastore. I have a Map clients that has a key from the one build with the builder. clients.get(<the one from the datastore read>) returns null in spite of Also... apparently they have different toString() results... weird. |
| Comments |
| Comment by Ed Warnicke [ 14/Apr/15 ] |
|
Oh... and lest you think I'm caching things I shouldn't... the value side of the map is an object for a connection |
| Comment by Tony Tkacik [ 14/Apr/15 ] |
|
Does DTO contains list or not? |
| Comment by Ed Warnicke [ 22/Apr/15 ] |
|
This particular DTO does not contain a list, simply four leaves. |
| Comment by Tony Tkacik [ 22/Apr/15 ] |
|
Which project you are observing that issue? |
| Comment by Ed Warnicke [ 28/Apr/15 ] |
|
I was seeing this for ConnectionInfo in ovsdb/southbound. |
| Comment by Tony Tkacik [ 06/May/15 ] |