Skip to content
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

GROOVY-10881: Make FastStringUtils work in an OSGi environment #1836

Closed
wants to merge 3 commits into from

Conversation

royteeuwen
Copy link

No description provided.

@codecov-commenter
Copy link

Codecov Report

Merging #1836 (59d3a32) into master (2727507) will decrease coverage by 0.0003%.
The diff coverage is 33.3333%.

Impacted file tree graph

@@                Coverage Diff                 @@
##               master      #1836        +/-   ##
==================================================
- Coverage     67.7583%   67.7580%   -0.0003%     
  Complexity      28281      28281                
==================================================
  Files            1427       1427                
  Lines          112556     112558         +2     
  Branches        19302      19303         +1     
==================================================
+ Hits            76266      76267         +1     
- Misses          29759      29761         +2     
+ Partials         6531       6530         -1     
Impacted Files Coverage Δ
...g/apache/groovy/json/internal/FastStringUtils.java 55.0000% <33.3333%> (-6.1111%) ⬇️
...ncurrentlinkedhashmap/ConcurrentLinkedHashMap.java 45.0593% <0.0000%> (ø)
...odehaus/groovy/reflection/GeneratedMetaMethod.java 57.6923% <0.0000%> (+0.9615%) ⬆️

@eric-milles
Copy link
Member

Can you please make the test class final and JUnit4-based by using @Test instead of GroovyTestCase?

@eric-milles
Copy link
Member

Will this cause many passes of class scanning and DefaultFastStringService instances? How are loadService() and getService() used?

@royteeuwen
Copy link
Author

Will this cause many passes of class scanning and DefaultFastStringService instances? How are loadService() and getService() used?

INSTANCE s a static field, meaning that at the class loading of FastStringUtils it will be initialized by calling loadService(). This will only be done once

getService() will just return that same static instance all the time

@paulk-asert
Copy link
Contributor

@royteeuwen Should we close this now given the alternative fix?

@royteeuwen royteeuwen closed this Feb 19, 2023
@royteeuwen
Copy link
Author

@royteeuwen Should we close this now given the alternative fix?

Done!

@royteeuwen royteeuwen deleted the patch-1 branch February 19, 2023 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants