You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2022/03/25 21:32:00 UTC

[jira] [Commented] (GROOVY-10551) JsonOutput triggers a stack overflow serializing a Pattern

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

Eric Milles commented on GROOVY-10551:
--------------------------------------

I thought this was handled by GROOVY-5169, GROOVY-7519. GROOVY-7682 and GROOVY-8371 changes.

https://github.com/apache/groovy/pull/1670/commits/f6ab340292465749edac4dec377fe526aded8d28
https://github.com/apache/groovy/pull/1670/commits/2963713c605267e5dcbc049143b62afac088bc72
https://github.com/apache/groovy/pull/1670/commits/784b1184718db9355b16ded597ab4b880ecda0d4

Do you have a small script to recreate?

> JsonOutput triggers a stack overflow serializing a Pattern
> ----------------------------------------------------------
>
>                 Key: GROOVY-10551
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10551
>             Project: Groovy
>          Issue Type: Bug
>          Components: JSON
>    Affects Versions: 4.0.1
>            Reporter: Christopher Smith
>            Priority: Major
>              Labels: StackOverflowError
>
> This was encountered as a result of GROOVY-10550. Attempting to serialize a {{java.util.regex.Pattern}} results in a stack overflow because of circular references.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)