-
Notifications
You must be signed in to change notification settings - Fork 286
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
WELD-2589 Support Class-Path manifest attribute when scanning class path for bean archives #1924
Conversation
Can one of the admins verify this patch? |
ok to test |
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.
Just thinking aloud here; two things that come to my mind:
- this change means that existing SE apps might break/change behaviour because we will suddenly scan their manifests which means additional archives might be picked up as opposed to previous versions, right?
- projects/libs might have some 'wrong' entries in the manifest, e.g. repeatedly stating a jar that we otherwise already found and so on - I am not quite sure what will happen then?
...c/main/java/org/jboss/weld/environment/deployment/discovery/ClassPathBeanArchiveScanner.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/jboss/weld/environment/deployment/discovery/ClassPathBeanArchiveScanner.java
Outdated
Show resolved
Hide resolved
Actually yes, this could happen. If you really think this will hit people in the wild I would suggest to still have this behaviour by default, as the current behaviour is the more confusing one and provide some Weld-specific system property to turn the class-path manifest entry following off.
Not sure what you mean. If there are wrong entries that do not reference correct files, I already ignore them and if there are libs referenced multiple times, I think I handled this by the endless recursion protection, not scanning a class path attribute referenced lib multiple times. |
That's what I was considering but I agree that it might be too corner case-ish already.
Don't worry, if it comes to that, I'll take it over (although I'll be gone for a while as well).
Your code looks defensive enough. I am just being a bit paranoid about what people can do with this. But I haven't found anything that we wouldn't cover here so far; so I think it's good. |
…ath for bean archives
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.
I'll give Martin time to review as well.
@Vampire thanks for contributing! :) |
No description provided.