title: Error "the type kafkaconsumer is not generic it cannot be parameterized with arguments"
body: <p>I'm facing a problem when I want to instantiate a KafkaProducer : </p>
  
  <pre><code>Properties props = new Properties();
  props.put("bootstrap.servers", "localhost:9092");
  props.put("acks", "all");
  props.put("retries", 0);
  props.put("batch.size", 16384);
  props.put("linger.ms", 1);
  props.put("buffer.memory", 33554432);
  props.put("key.serializer","org.apache.kafka.common.serialization.StringSerializer");
  props.put("value.serializer","org.apache.kafka.common.serialization.StringSerializer");
  
  Producer&lt;String, String&gt; producer = new KafkaProducer&lt;&gt;(props);
  </code></pre>
  
  <blockquote>
    <p><strong>the type kafkaconsumer is not generic it cannot be parameterized with arguments</strong></p>
  </blockquote>
  
  <p>I don't understand the error knowing that I'm following the official kafka javadoc in which they do exactly the same thing with the same dependency as mine: </p>
  
  <p><a href="https://kafka.apache.org/11/javadoc/index.html?org/apache/kafka/clients/producer/KafkaProducer.html" rel="nofollow noreferrer">https://kafka.apache.org/11/javadoc/index.html?org/apache/kafka/clients/producer/KafkaProducer.html</a></p>
  
  <p>Can someone explain me this joke ?</p>