kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shannon Lloyd <shanl...@gmail.com>
Subject Javadoc errors in MetricName when building with Java 8
Date Wed, 14 Jan 2015 03:56:51 GMT
Is Java 8 supported for building Kafka? Or do you only support Java 7? I
just noticed that the latest code on the 0.8.2 branch fails on the javadoc
in the new MetricName class due to Java 8's javadoc tool being much
stricter when checking comments (especially around things like HTML tags).

For example:

kafka/clients/src/main/java/org/apache/kafka/common/MetricName.java:22:
error: self-closing element not allowed
 * <p/>
   ^
kafka/clients/src/main/java/org/apache/kafka/common/MetricName.java:39:
error: malformed HTML
 * Map<String, String> metricTags = new LinkedHashMap<String, String>();
      ^
kafka/clients/src/main/java/org/apache/kafka/common/MetricName.java:39:
error: bad use of '>'
 * Map<String, String> metricTags = new LinkedHashMap<String, String>();

I realise that you can avoid these errors via -Xdoclint, but it seems like
it would be preferable to fix up the javadoc instead.

Cheers,
Shannon

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message