You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Roy Teeuwen (Jira)" <ji...@apache.org> on 2023/02/01 11:00:01 UTC

[jira] [Comment Edited] (GROOVY-10881) FastStringUtils does not work in an OSGi environment

    [ https://issues.apache.org/jira/browse/GROOVY-10881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17682969#comment-17682969 ] 

Roy Teeuwen edited comment on GROOVY-10881 at 2/1/23 10:59 AM:
---------------------------------------------------------------

Looks good (y)
 !Screenshot 2023-02-01 at 11.53.16.png! 

FYI, I did have to do a cherry-pick from the master to the 4_0_X branch for those changes

Is there a release schedule /milestones on when this could be released?


was (Author: royteeuwen):
Looks good (y)
 !Screenshot 2023-02-01 at 11.53.16.png! 

> 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, Screenshot 2023-02-01 at 11.53.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)