Skip to content

Commit

Permalink
HOTFIX: Fix Properties.putAll compiler error when compiling with Java 11
Browse files Browse the repository at this point in the history
Introduced by apache#5921.
  • Loading branch information
ijuma committed Jan 14, 2019
1 parent eb61410 commit 64e7320
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/test/scala/unit/kafka/network/SocketServerTest.scala
Expand Up @@ -28,6 +28,7 @@ import com.yammer.metrics.{Metrics => YammerMetrics}
import javax.net.ssl._
import kafka.security.CredentialProvider
import kafka.server.{KafkaConfig, ThrottledChannel}
import kafka.utils.Implicits._
import kafka.utils.TestUtils
import org.apache.kafka.common.TopicPartition
import org.apache.kafka.common.memory.MemoryPool
Expand Down Expand Up @@ -188,7 +189,7 @@ class SocketServerTest extends JUnitSuite {
@Test
def testControlPlaneRequest(): Unit = {
val testProps = new Properties
testProps.putAll(props)
testProps ++= props
testProps.put("listeners", "PLAINTEXT://localhost:0,CONTROLLER://localhost:5000")
testProps.put("listener.security.protocol.map", "PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT")
testProps.put("control.plane.listener.name", "CONTROLLER")
Expand Down Expand Up @@ -1320,4 +1321,4 @@ class SocketServerTest extends JUnitSuite {
sockets.filterNot(socket => isSocketConnectionId(failedConnectionId, socket))
}
}
}
}

0 comments on commit 64e7320

Please sign in to comment.