Skip to content

Start of a testcases for ByteBufferPool contract#12432

Closed
joakime wants to merge 1 commit into
jetty-12.1.xfrom
fix/12.1.x/bytebufferpool.reset.testing
Closed

Start of a testcases for ByteBufferPool contract#12432
joakime wants to merge 1 commit into
jetty-12.1.xfrom
fix/12.1.x/bytebufferpool.reset.testing

Conversation

@joakime

@joakime joakime commented Oct 28, 2024

Copy link
Copy Markdown
Contributor

As pointed out at #12075 (comment) it seems we lack tests for the ByteBuffer.order() reset of the ByteBufferPool implementations.

This is just a simple testcase that tests that, but it likely needs more implementations to test.

@lorban lorban left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I was wrong. ArrayByteBufferPoolTest.testEndiannessResetOnRelease() does test that the endianness gets reset upon release. And since 12.0 we figured that only ArrayByteBufferPool was worth keeping (Tracking being a subclass only useful for testing and troubleshooting) as other implementations like ByteBufferPool came with more problems than solutions.

So I think this PR isn't needed.

@joakime

joakime commented Oct 30, 2024

Copy link
Copy Markdown
Contributor Author

Closing as not-needed.

@joakime joakime closed this Oct 30, 2024
@joakime joakime deleted the fix/12.1.x/bytebufferpool.reset.testing branch October 30, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants