Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #28 #31

Closed
wants to merge 1 commit into from
Closed

Fix #28 #31

wants to merge 1 commit into from

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