Github user StephanEwen commented on a diff in the pull request:
https://github.com/apache/flink/pull/2723#discussion_r92588685
--- Diff:
flink-core/src/test/java/org/apache/flink/api/common/typeutils/SerializerTestBase.java
---
@@ -409,9 +402,26 @@ else if (should instanceof Throwable) {
assertEquals(((Throwable)should).getMessage(),
((Throwable)is).getMessage());
}
else {
+ // if toString() was overridden we must check it
+ if
(!should.toString().equals(should.getClass().getName() +
+
"@" + Integer.toHexString(should.hashCode()))) {
--- End diff --
This can be more robustly done by looking up the 'toString()' method and
seeing if the defining class was `Object`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---