You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2018/09/03 09:31:35 UTC

[GitHub] zentol opened a new pull request #6653: [FLINK-10235][kafka] Explicitly cast custom partitioner classes

zentol opened a new pull request #6653: [FLINK-10235][kafka] Explicitly cast custom partitioner classes
URL: https://github.com/apache/flink/pull/6653
 
 
   This PR fixes a jdk9 incompatibility regarding generics. The method compilation fails on java 9 since the CONNECTOR_SINK_PARTITIONER_VALUE_CUSTOM branch returns an Optional<Class<? extends FlinkKafkaPartitioner>>, but the method requires a Optional<FlinkKafkaPartitioner<Row>>.
   
   The compiler obviously cannot infer that the instantiated partitioner is always a `FlinkKafkaPartitioner<Row>` (since it technically could work on any type), so we have to help a bit.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services