Skip to content

Fix #28#31

Closed
ice1000 wants to merge 1 commit intocretz:masterfrom
ice1k:master
Closed

Fix #28#31
ice1000 wants to merge 1 commit intocretz:masterfrom
ice1k:master

Conversation

@ice1000
Copy link

@ice1000 ice1000 commented Sep 9, 2019

Bump dependencies, update ByteBuffer APIs to Java 9's, suppress warning properly

This issue fixes #28, but may drop support for JRE 8. I'm using JRE 11.

@ice1000 ice1000 mentioned this pull request Sep 9, 2019
andrewaylett added a commit to andrewaylett/asmble that referenced this pull request Apr 4, 2022
@DCNick3
Copy link
Contributor

DCNick3 commented Jun 15, 2023

According to apache/felix#114, a more proper way to fix this is to upcast the type by changing the called methods from ByteBuffer::* to Buffer::limit and Buffer::position.

As they are defined on the interface, they actually return Buffer objects. This solution also preserves compatibility with java 8

@cretz
Copy link
Owner

cretz commented Jun 16, 2023

👍 I don't really have much time for this project anymore, but a new PR with this change with Java 8 compat I can merge

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.

asmble compile error

3 participants