FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-1007: fix: does not break class loading if direct buffer allocator is not available by torito · Pull Request #1008 · apache/arrow-java · GitHub

GH-1007: fix: does not break class loading if direct buffer allocator is not available - #1008

Merged
jbonofre merged 5 commits into
apache:mainfrom
torito:catch-jpms-failure
Feb 26, 2026
Merged

GH-1007: fix: does not break class loading if direct buffer allocator is not available#1008
jbonofre merged 5 commits into
apache:mainfrom
torito:catch-jpms-failure

Conversation

torito commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

What's Changed

The Direct Buffer is not always needed to use Arrow memory, however, we cannot load MemoryUtil class if we don't set:

--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED

Which is not always needed/possible.

This fix proposes to catch the InaccessibleObjectException to not avoiding the load of the class.

The directBuffer is, in any case not available and a UnsupportedOperationException will be throw as it is in the existing code

Closes #1007 .

This comment has been minimized.

torito marked this pull request as draft February 5, 2026 16:01
torito closed this Feb 5, 2026
torito reopened this Feb 5, 2026
torito marked this pull request as ready for review February 5, 2026 20:17

torito commented Feb 6, 2026

Copy link
Copy Markdown
Contributor Author

I'm not able to set the bug-fix label in the PR

torito commented Feb 11, 2026

Copy link
Copy Markdown
Contributor Author

@lidavidm can you review this please

jbonofre added the bug-fix PRs that fix a big. label Feb 11, 2026
github-actions Bot added this to the 19.0.0 milestone Feb 11, 2026

Copy link
Copy Markdown
Member

@torito I gonna take a look.

By the way, I'm fixing the CI, so the build for this PR will probably fail.

Copy link
Copy Markdown
Member

@torito can you please rebase this PR ? The CI should be ok now.

torito force-pushed the catch-jpms-failure branch from 115e465 to b002db5 Compare February 17, 2026 15:20

torito commented Feb 17, 2026

Copy link
Copy Markdown
Contributor Author

@torito can you please rebase this PR ? The CI should be ok now.

@jbonofre done

jbonofre merged commit 394755b into apache:main Feb 26, 2026
26 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PRs that fix a big.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to load MemoryUtil class if we dont set --add-opens

3 participants


Back | FazBrowse Home | New Git URL