Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1959

Class CommitThread overwrite group of Thread class causing compile errors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0.0
    • Component/s: core
    • Labels:
    • Environment:
      scala 2.10.4

      Description

      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

        Attachments

        1. KAFKA-1959.patch
          3 kB
          Tong Li
        2. compileError.png
          41 kB
          Tong Li

          Activity

            People

            • Assignee:
              tongli Tong Li
              Reporter:
              tongli Tong Li
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: