Quantcast

Question about Groovy

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Question about Groovy

Frank Merrow

Okay, so I suppose this is a little off topic, but the only reason I am learning Groovy is for Jenkins . . . so . . .

 

This works:

 

import Test

 

test = new Test();

println(test.MyString());

 

This doesn’t:

 

import Test

 

Test test = new Test();

println(test.MyString());

 

I’ve seen examples in Groovy In Action that seem to imply this should work, but I get an exception at the class def:

 

java.lang.IllegalAccessError: tried to access class Test from class ConsoleScript38

 

Why?

 

Frank

Loading...