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

Paul King commented on GROOVY-9365:
-----------------------------------

Daniel can chime in if he has further thoughts but my understanding from the 
proposed code is that `JavaShell` is a Java equivalent to `GroovyShell`. It 
isn't a mirror of `groovysh` which has a Java equivalent (`jshell`). I 
anticipate it would be a very useful feature when dealing with code snippets, 
so often used for testing but not exclusively. I believe it is marked as an 
incubating feature for 4.0. If it ends up not being general purpose enough, we 
can restrict it to just testing scenarios or delete it.

> Implement JavaShell to run Java code
> ------------------------------------
>
>                 Key: GROOVY-9365
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9365
>             Project: Groovy
>          Issue Type: New Feature
>            Reporter: Daniel Sun
>            Assignee: Daniel Sun
>            Priority: Major
>             Fix For: 4.0.0-alpha-1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Sometimes we need to compare the behaviour between Groovy and Java, so it's 
> necessary to have a JavaShell to run pure Java code.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to