Skip to content

Use long rather than int for sizeRw and sizeRootFs #2230

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

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

LarsSven
Copy link
Contributor

Currently docker-java uses an integer to represent SizeRw and SizeRootFs. This value however represents the an amount of bytes, meaning the integer could easily overflow.

This MR changes these two fields to longs.

Note that Container.java also implements a SizeRw and SizeRootFs fields. Here, the fields are represented as longs rather than integers, so it would make sense that the inspect container command also returns longs.

@eddumelendez eddumelendez added this to the next milestone Dec 19, 2023
@eddumelendez eddumelendez merged commit 84d7750 into docker-java:main Dec 19, 2023
@eddumelendez
Copy link
Member

Thanks for your contribution, @LarsSven !

@ondh
Copy link

ondh commented Jan 22, 2024

Thanks guys.When can it be released?

@eddumelendez
Copy link
Member

I'm planning to revert this one due to the breaking changes. See #2279

eddumelendez added a commit that referenced this pull request Feb 2, 2024
* Enable japicmp in docker-java-api

* Revert "Use long rather than int for sizeRw and sizeRootFs (#2230)"

This reverts commit 84d7750.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants