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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to