Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
This is very useful for use case like XWiki where you want to put a groovy script containing a class in a wiki page and include this page in other documents to use the class.
Here is a possible test case:
def engine = new ScriptEngineManager().getEngineByName('groovy') def clazz = engine.eval('class Foo {}') def instance = engine.eval('new Foo()') assert instance.class.isAssignableFrom(clazz)
Attachments
Issue Links
- duplicates
-
GROOVY-3707 I wish i could parse a class using eval function of JSR223
- Closed