Skip to content

Use SystemAccessUtils.fileExists in loadIfExists - #1757

Closed
jasonkatonica wants to merge 1 commit into
IBM:java21from
jasonkatonica:katonica/issue1284/fixforifexistssecman
Closed

Use SystemAccessUtils.fileExists in loadIfExists#1757
jasonkatonica wants to merge 1 commit into
IBM:java21from
jasonkatonica:katonica/issue1284/fixforifexistssecman

Conversation

@jasonkatonica

@jasonkatonica jasonkatonica commented Sep 8, 2026

Copy link
Copy Markdown
Member

Replace direct libraryFile.exists() call in loadIfExists with SystemAccessUtils.fileExists(libraryName) to ensure file existence checks are routed through the security manager aware utility method, consistent with the rest of the privileged-access pattern used in the native library loading path.

Signed-off-by: Jason Katonica katonica@us.ibm.com

Replace direct `libraryFile.exists()` call in `loadIfExists` with
`SystemAccessUtils.fileExists(libraryName)` to ensure file existence
checks are routed through the security manager aware utility method,
consistent with the rest of the privileged-access pattern used in the
native library loading path.

Signed-off-by: Jason Katonica <katonica@us.ibm.com>
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.

1 participant