undera commented on PR #693:
URL: https://github.com/apache/jmeter/pull/693#issuecomment-1303780800

   I took the code snippet you suggested and it works fine for me (on master 
branch), just as expected, because the `hashCode()` is different.
   IMO the example with `HashSet` behaves exactly how it should. It's a `Set` 
that is supposed to store only objects that are different by `hashCode()`. 
   
   Can you arrange the code piece to demonstrate the issue with 
`SearchByClass`? I don't see in its source code any relation to `equals()` or 
`hashCode()`. The criteria for search there is `searchClass.isAssignableFrom()`
   
   Also, if I open `bin/testfiles/BUG_62847.jmx` and re-save it with master 
branch code, it works fine. Let's understand the problem better and let's 
reproduce it on the level of unit tests. 
   
   For now, the only change I see needed is to make sure that test elements of 
different kind won't be matched.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to