Skip to content

Only use NOSHARE_DELETE if accessible#7304

Merged
headius merged 1 commit intojruby:jruby-9.3from
headius:noshare_delete
Aug 15, 2022
Merged

Only use NOSHARE_DELETE if accessible#7304
headius merged 1 commit intojruby:jruby-9.3from
headius:noshare_delete

Conversation

@headius
Copy link
Member

@headius headius commented Aug 11, 2022

The NOSHARE_DELETE ExtendedOption is not always available on all
systems, since it is part of a com.sun package that's not a public
API on recent JDKs. This commit guards its use, falling back on
the default NIO behavior of SHARE_DELETE when we can't access the
sole option that would turn it off.

Fixes #7268

The NOSHARE_DELETE ExtendedOption is not always available on all
systems, since it is part of a com.sun package that's not a public
API on recent JDKs. This commit guards its use, falling back on
the default NIO behavior of SHARE_DELETE when we can't access the
sole option that would turn it off.

Fixes jruby#7268
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