[
https://issues.apache.org/jira/browse/GROOVY-9365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17026285#comment-17026285
]
Daniel Sun commented on GROOVY-9365:
------------------------------------
[~paulk] Now that {{JavaShell}} is designed as the Java equivalent to
{{groovy.lang.GroovyShell}}, we can use it to do many things, not just testing
;-)
[~emilles] some features are very complicated, e.g. language features, so 72
hours may be not enough to review, but some simple features like this util
class, 72 hours are usually enough to review.
BTW, I had another proposal to support native Java code in Groovy:
{code:java}
class SomeGroovyClazz {
public int meth() #{
// The following are Java code
int[] numbers = {1, 2, 3};
return numbers[0];
}
}
assert 1 == new SomeGroovyClazz().meth()
{code}
> 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)