Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7-beta-2
-
Fix Version/s: 1.7-rc-1
-
Component/s: Groovy Console
-
Labels:None
-
Environment:all
-
Number of attachments :
Description
The GroovyConsole AST browser doesn't use the same classloader for the AST BRowser.
1. Open groovyConsole and import a JAR using the Script menu item.
2. Write a script that uses something out of that JAR
3. Open AST Browser
4. AST browser will show a ClassNodeFOund exception for anything out of the JAR
I suspect that the classes are being loaded into the classloader GroovyConsole uses to execute the script but not the classloader used to execute AST Browser.
Hi Hamlet, attaching a patch here for review. Let me know if it seems ok. I have tested from UI with the steps you provided in the JIRA.