[
https://issues.apache.org/jira/browse/GROOVY-11714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18007284#comment-18007284
]
Jin Xu edited comment on GROOVY-11714 at 7/15/25 4:21 PM:
----------------------------------------------------------
also another question, I binded several variables, and injected some functions,
how can I save the whole context and load it for use, when next time(something
like squeak if you know it)
I ask as it seems not the same save/load you provided...
was (Author: xenoamess):
also another question, I binded several variables, and injected some functions,
how can I save the whole context and load it for use, when next time(something
like squeak if you know it)
> groovysh failed to store variable for grammar like 'def e = 1' for groovy 5
> ---------------------------------------------------------------------------
>
> Key: GROOVY-11714
> URL: https://issues.apache.org/jira/browse/GROOVY-11714
> Project: Groovy
> Issue Type: Bug
> Reporter: Jin Xu
> Priority: Major
> Attachments: screenshot-1.png, screenshot-2.png
>
>
> !screenshot-1.png!
> however, define first then give value can work.
> !screenshot-2.png!
> xenoamess@xenoamessum890pro:~/groovy-5.0.0-beta-1/bin$ ./groovy -v
> Groovy Version: 5.0.0-beta-1 JVM: 24 Vendor: GraalVM Community OS: Linux
--
This message was sent by Atlassian Jira
(v8.20.10#820010)