Github user greghogan commented on a diff in the pull request:
https://github.com/apache/flink/pull/2211#discussion_r69951075
--- Diff:
flink-core/src/main/java/org/apache/flink/api/java/typeutils/PojoTypeInfo.java
---
@@ -315,6 +331,23 @@ public int getFieldIndex(String fieldName) {
reflectiveFields[i] = fields[i].getField();
}
+ if (customSerializers.containsKey(this.getTypeClass())) {
+ Constructor<?>[] ctors =
customSerializers.get(this.getTypeClass()).getConstructors();
+ assert ctors.length == 1;
+ try {
+ return (TypeSerializer<T>)
ctors[0].newInstance(new Object[]{getTypeClass(), fieldSerializers, config});
+
+ } catch (Throwable t) {
--- End diff --
Stephan noted to me a little while back that IntelliJ convention for an
unused exception is to name the variable `ignored`, so `} catch (Throwable
ignored) {`.
---
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.
---