You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/01/22 22:28:40 UTC

[jira] [Created] (FLINK-3280) Wrong usage of Boolean.getBoolean()

Ted Yu created FLINK-3280:
-----------------------------

             Summary: Wrong usage of Boolean.getBoolean()
                 Key: FLINK-3280
                 URL: https://issues.apache.org/jira/browse/FLINK-3280
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu


I observed the problem in both FlinkKafkaProducerBase.java and FlinkKafkaConsumer09.java

>From FlinkKafkaProducerBase.java :
{code}
if(!Boolean.getBoolean(producerConfig.getProperty(KEY_DISABLE_METRICS, "false"))) {
{code}
Boolean.getBoolean() would call System.getProperty(). See http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/Boolean.java#238



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)