[
https://issues.apache.org/jira/browse/GROOVY-10881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17681111#comment-17681111
]
Roy Teeuwen commented on GROOVY-10881:
--------------------------------------
[~paulk] super, that fixes it. Sadly enough I have to add 5 extra dependencies
to make the serviceloader work in OSGi though, but if this makes it work for
all cases, I guess I can live with that.
If I can ask one more thing, could you also update the manifest generation so
that it doesnt add Bundle-Name:Groovy Runtime for every jar? (see screenshot)
> FastStringUtils does not work in an OSGi environment
> ----------------------------------------------------
>
> Key: GROOVY-10881
> URL: https://issues.apache.org/jira/browse/GROOVY-10881
> Project: Groovy
> Issue Type: Bug
> Components: JSON
> Reporter: Roy Teeuwen
> Assignee: Paul King
> Priority: Major
> Attachments: Screenshot 2023-01-25 at 15.41.16.png,
> groovy-json-example.zip
>
>
> Using the FastStringUtils does not work in an OSGi environment. The
> FastStringUtils will be called by the classloader of another bundle, making
> the code at
> https://github.com/apache/groovy/blob/master/subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/FastStringUtils.java#L39
> not find the default service loader.
> To counter this, I'd like to propose to at least fall back to the
> DefaultFastStringService when no FastStringServiceFactory is found
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)