-
Notifications
You must be signed in to change notification settings - Fork 1.9k
GROOVY-11578: provide default FastStringService in case of service loader failure
#2330
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
Conversation
|
@paulk-asert could we already go for this workaround for the linked ticket, it should not break something and will at least fix the groovy-json bundle which is the only one specifically with this kind of logic where it searches for a service loader or else returns null |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2330 +/- ##
==================================================
+ Coverage 67.0045% 67.0074% +0.0028%
- Complexity 29330 29357 +27
==================================================
Files 1382 1382
Lines 116613 116623 +10
Branches 20432 20445 +13
==================================================
+ Hits 78136 78146 +10
- Misses 32038 32041 +3
+ Partials 6439 6436 -3
🚀 New features to boost your workflow:
|
|
@eric-milles would you be able to review this :? |
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/FastStringUtils.java
Outdated
Show resolved
Hide resolved
… working, like currently in OSGi context
06f5f23 to
9c83ccc
Compare
|
@eric-milles can you recheck with my smaller list of changes :)? |
|
You can probably remove the null check on lines 55-57. Is there any hope for a test case? |
|
If the |
FastStringService in case of service loader failure
|
@eric-milles yes, it should become available through Service Loading but there are two issues:
I will check if I find some time to add test cases :) I expect it will be a simple test hehe. |
|
@eric-milles test case added :) |
No description provided.