-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Apply sun.nio.ch.Iocp substitutions only against Windows #7636
Conversation
I would apply the platform to the alias too if they are part of a consistent thing. |
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.
Thanks, reproducer app from #7632 works without problem with this fix
don't you need "sun.nio.ch.ThreadPool" too? Checking. ---> My own reply, no. |
No something is still not fixed:
|
CI passed. Are you sure your build is good? That stack looks like an out of date jar to me. |
Let me retry with a fresh master build |
I built the PR branch and tested locally with GraalVM 19.3.1 and 20.0.0, both passed ok. |
Confirmed, works with a full build of quarkus. |
…which is where those classes are present)
Thinking a bit more and from the inputs I've received so far:
I think it makes sense to apply the |
I rebuilt the updated PR branch and tested locally again with GraalVM 19.3.1 and 20.0.0, worked fine as before. |
I'm merging as current CI is mostly useless for that one. And I need it for an upcoming PR. |
Thanks @jaikiran ! |
Sorry, I had a very busy day and missed the whole discussion. The fix looks good to me, thanks @jaikiran and everyone involved! |
For the record, I introduced the |
Fixes #7632
The commit here applies the
sun.nio.ch.Iocp
@Substitution
only on Windows to prevent issues noted in that linked bug.With this change, the failure that I could reproduce from the original issue, on a non-Windows OS, no longer occurs and the project works fine.
I need one additional input from @gwenneg - in the original PR which introduced this
Substitution
, there's also a@Alias
applied tosun.nio.ch.ThreadPool
https://github.com/quarkusio/quarkus/pull/7587/files#diff-90406b62b00ac17517dec4fcf98458daR115. Now that class resides across different platforms, but do we want it enabled only when Windows in detected or is it fine to have it enabled on other OS, even when the other 2Substitution
/Alias
now only apply for Windows?