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/05/22 16:07:00 UTC

[jira] [Updated] (GROOVY-3457) GStringTemplateEngine fails to work with >64K strings

     [ https://issues.apache.org/jira/browse/GROOVY-3457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Milles updated GROOVY-3457:
--------------------------------
    Labels: ClassFormatError  (was: )

> GStringTemplateEngine fails to work with >64K strings
> -----------------------------------------------------
>
>                 Key: GROOVY-3457
>                 URL: https://issues.apache.org/jira/browse/GROOVY-3457
>             Project: Groovy
>          Issue Type: Bug
>          Components: Templating
>    Affects Versions: 1.5.6, 1.6.1
>         Environment: JRE 1.6 Windows
> Groovy 1.5.7 and 1.6.1
>            Reporter: Michael Chayat
>            Assignee: Cédric Champeau
>            Priority: Major
>              Labels: ClassFormatError
>             Fix For: 2.4.0-beta-4
>
>         Attachments: test_message1.xml
>
>
> I am initialising the GStringTemplate with the contens of a large (>64K)
> file and getting the following error:
> java.lang.ClassFormatError: Unknown constant tag 121 in class file
> groovy/tmp/templates/GStringTemplateScript11$_getTemplate_closure1
> I am using the following Groovy script step with code:
> import groovy.text.*
> def binding = [wid: "123123123"]
> def engine = new GStringTemplateEngine()
> def template = engine.createTemplate(new
> File("test_message1.xml")).make(binding)
> println template.toString()
> The message is attached as well.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)