ambiguous method byteBuffer.limit with jdk9 (#24593)

```
[error] /localhome/jenkinsakka/workspace/akka-nightly-jdk9/akka-remote/src/main/scala/akka/remote/artery/tcp/ArteryTcpTransport.scala:160:35: ambiguous reference to overloaded definition,
[error] both method limit in class ByteBuffer of type (x$1: Int)java.nio.ByteBuffer
[error] and  method limit in class Buffer of type ()Int
[error] match expected type ?
[error]         val size = env.byteBuffer.limit
```
This commit is contained in:
Patrik Nordwall 2018-02-22 08:52:34 +01:00 committed by Konrad `ktoso` Malawski
parent b5b1417a80
commit a89268ee45
2 changed files with 5 additions and 5 deletions

View file

@ -87,8 +87,8 @@ class TcpFramingSpec extends AkkaSpec with ImplicitSender {
val frames = Source.fromIterator(() rechunk(bytes)).via(framingFlow).runWith(Sink.seq).futureValue
frames.size should ===(numberOfFrames)
frames.foreach { frame
frame.byteBuffer.limit should ===(payload5.size)
val payload = new Array[Byte](frame.byteBuffer.limit)
frame.byteBuffer.limit() should ===(payload5.size)
val payload = new Array[Byte](frame.byteBuffer.limit())
frame.byteBuffer.get(payload)
ByteString(payload) should ===(payload5)
frame.streamId should ===(3)