Skip to content

fix ambiguous overload in Java 9#415

Merged
xerial merged 1 commit intomsgpack:developfrom
xuwei-k:patch-1
Mar 19, 2017
Merged

fix ambiguous overload in Java 9#415
xerial merged 1 commit intomsgpack:developfrom
xuwei-k:patch-1

Conversation

@xuwei-k
Copy link
Contributor

@xuwei-k xuwei-k commented Mar 13, 2017

[error] /home/travis/build/xuwei-k/msgpack-java/msgpack-core/src/test/scala/org/msgpack/core/buffer/MessageBufferTest.scala:163: ambiguous reference to overloaded definition,
[error] both method position in class ByteBuffer of type (x$1: Int)java.nio.ByteBuffer
[error] and  method position in class Buffer of type ()Int
[error] match expected type ?
[error]         bb.position shouldBe 0
[error]            ^
[error] /home/travis/build/xuwei-k/msgpack-java/msgpack-core/src/test/scala/org/msgpack/core/buffer/MessageBufferTest.scala:164: 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]         bb.limit shouldBe 10
[error]            ^
[error] two errors found

- http://download.java.net/java/jdk9/docs/api/java/nio/Buffer.html#limit-int-
- http://download.java.net/java/jdk9/docs/api/java/nio/ByteBuffer.html#position-int-

```
[error] /home/travis/build/xuwei-k/msgpack-java/msgpack-core/src/test/scala/org/msgpack/core/buffer/MessageBufferTest.scala:163: ambiguous reference to overloaded definition,
[error] both method position in class ByteBuffer of type (x$1: Int)java.nio.ByteBuffer
[error] and  method position in class Buffer of type ()Int
[error] match expected type ?
[error]         bb.position shouldBe 0
[error]            ^
[error] /home/travis/build/xuwei-k/msgpack-java/msgpack-core/src/test/scala/org/msgpack/core/buffer/MessageBufferTest.scala:164: 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]         bb.limit shouldBe 10
[error]            ^
[error] two errors found
```
@xuwei-k xuwei-k mentioned this pull request Mar 13, 2017
@xerial xerial merged commit f077d19 into msgpack:develop Mar 19, 2017
@xuwei-k xuwei-k deleted the patch-1 branch May 17, 2017 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants