-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8374368: Invalid java.nio.channels.spi.SelectorProvider value results in ClassNotFoundException instead of falling back to default provider #28998
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
base: master
Are you sure you want to change the base?
Conversation
… in ClassNotFoundException instead of falling back to default provider Signed-off-by: Shruthi <[email protected]>
|
👋 Welcome back sacharya! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
@shruacha1234 The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
|
Validated the fix with the personal build SelectorTypeCheck.java jdk/bin/java -Djava.nio.channels.spi.SelectorProvider=abc SelectorTypeCheck jdk/bin/java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider SelectorTypeCheck Also I have triggred java_nio, java_io and jdk_net tests. All of them are passing |
|
This is not a bug, the lookup is specified to fall if there is a configuration error. |
| InvocationTargetException | | ||
| InstantiationException x) { | ||
| throw new ServiceConfigurationError(null, x); | ||
| } catch (Throwable t) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix should have a regression test, based on the provided reproducer.
If it can't be implemented, then bug should have 'noreg-' label.
Fall back to the default SelectorProvider by logging an error when an invalid provider is specified via the java.nio.channels.spi.SelectorProvider system property.
The bug report for the same: https://bugs.openjdk.org/browse/JDK-8374368
Progress
Integration blocker
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28998/head:pull/28998$ git checkout pull/28998Update a local copy of the PR:
$ git checkout pull/28998$ git pull https://git.openjdk.org/jdk.git pull/28998/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28998View PR using the GUI difftool:
$ git pr show -t 28998Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28998.diff
Using Webrev
Link to Webrev Comment