-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix parsing of service provider file #3843
Conversation
modules/flowable-osgi/src/test/java/org/flowable/osgi/BundleScriptEngineResolverTest.java
Show resolved
Hide resolved
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 @karelmaxa. Everything looks great, only one small change
modules/flowable-osgi/src/main/java/org/flowable/osgi/Extender.java
Outdated
Show resolved
Hide resolved
A bit off topic (explanation for the crashing tests): The build crashes because of So this seems like it needs to be addressed at some architectural design level whether OSGi is a concern or not. I am just a "passer by", so I just wanted to share this knowledge without knowing what to do with this information. |
Thanks for the explanation @pavelhoral. Those hints were moved just today. We'll look into fixing those OSGi tests. Seems like you know your way around OSGi, do you perhaps know if there is a way to exclude some classes? e.g. those runtime hints are not needed in an OSGi world. |
I am just an OSGi user... but I can try to look into it later. |
I have created dedicated issue to the wiring issue #3844. This PR has kind of nothing to do with it. Also apologies for my previous comment that contained a lot of nonsense (now decorated with "strikethrough"). |
Thanks @pavelhoral for the OSGi fixes on main. I've re-run the tests here to see that everything is OK. Will merge after that. Thanks @karelmaxa |
I have rebased the branch with the main, so the OSGi test fix should now be included. |
Thanks @karelmaxa. The rebase wasn't entirely needed due to the way GitHub does PR checks. The tests are run by applying your changes on top of the target branch ( |
This PR fixes wrong parsing of the service provider configuration file in the OSGi environment.
The specification of the configuration file is the following (see
ServiceLoader
JavaDoc):The provider-configuration file must be encoded in UTF-8. Space and tab characters surrounding each service provider's name, as well as blank lines, are ignored. The comment character is '#' (U+0023 NUMBER SIGN); on each line all characters following the first comment character are ignored
Check List: