Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.7-beta-2, 1.6.6
-
Component/s: None
-
Labels:None
-
Number of attachments :
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)
Issue Links
- duplicates
-
GROOVY-3707
I wish i could parse a class using eval function of JSR223
-
Duplicate JIRA - of
GROOVY-3707?