You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Tong Li (JIRA)" <ji...@apache.org> on 2015/02/16 17:12:11 UTC
[jira] [Commented] (KAFKA-1959) Class CommitThread overwrite group
of Thread class causing compile errors
[ https://issues.apache.org/jira/browse/KAFKA-1959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14322933#comment-14322933 ]
Tong Li commented on KAFKA-1959:
--------------------------------
Though I saw the error by using scala 2.10.4, I think it will be the same error in other scala versions.
> Class CommitThread overwrite group of Thread class causing compile errors
> -------------------------------------------------------------------------
>
> Key: KAFKA-1959
> URL: https://issues.apache.org/jira/browse/KAFKA-1959
> Project: Kafka
> Issue Type: Bug
> Components: core
> Environment: scala 2.10.4
> Reporter: Tong Li
> Labels: newbie
>
> class CommitThread(id: Int, partitionCount: Int, commitIntervalMs: Long, zkClient: ZkClient)
> extends ShutdownableThread("commit-thread")
> with KafkaMetricsGroup {
> private val group = "group-" + id
> group overwrite class Thread group member, causing the following compile error:
> overriding variable group in class Thread of type ThreadGroup; value group has weaker access privileges; it should not be private
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)