Skip to content

Conversation

@leerho
Copy link
Member

@leerho leerho commented Jan 31, 2025

I had to fix all the tests in

  • NativeWritableBufferImplTest
  • NativeWritableMemoryImplTest
  • NonNativeWritableBufferImplTest
  • NonNativeWritableMemoryTest
    to be able to detect this particular bug.

I also updated the logic in the 4 leaf classes:

  • NativeWritableBufferImpl
  • NativeWritableMemoryImpl
  • NonNativeWritableBufferImpl
  • NonNativeWritableMemoryImpl
    to take advantage of new APIs in the Java 21 version of FFM. This eliminated a whole bunch of unnecessary code, and made the code in these files much easier to read and debug!

pawel-wiejacha and others added 3 commits January 30, 2025 10:49
fixed operator precedence bug in setPosition() calls
At the same time, I refactored the leaf classes to use the new APIs in
Java 21 FFM, this should have been done before.  Nonetheless, this
eliminated a lot of unnecessary code.
@leerho leerho merged commit b55af70 into main Feb 1, 2025
4 checks passed
@leerho leerho deleted the fix_setPosition branch February 1, 2025 00:37
@leerho leerho mentioned this pull request Feb 1, 2025
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.

3 participants