-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Make sure the result from QCL.getElementsWithResource(name) does not include duplicates #44352
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
* @param list2 second list | ||
* @return resulting list | ||
*/ | ||
private static List<ClassPathElement> unify(List<ClassPathElement> list1, List<ClassPathElement> list2) { |
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.
Minor nitpick: I would prefer if this method was called deduplicate
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.
joinAndDedupe
? :)
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 comment has been minimized.
This comment has been minimized.
…include duplicates
e8e1551
to
70e2f17
Compare
This comment has been minimized.
This comment has been minimized.
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.
Looks good to me, thanks, but could you check the TCK issue is just a transient issue?
@ia3andy this will fix the issue in quarkus-roq |
This comment has been minimized.
This comment has been minimized.
Status for workflow
|
Should we try to backport this? It might be a bit risky given it's class loader-related? If we do, I would only do it for 3.16. |
I'd be fine either way. Perhaps @ia3andy would appreciate it being backported to 3.16. |
This fixes a case when
QuarkusClassLoader.visitRuntimeResources(resourceName, visitor)
visits the same classpath elements twice.