Question about Groovy

5 views
Skip to first unread message

Frank Merrow

unread,
Mar 11, 2012, 1:16:53 AM3/11/12
to jenkins...@googlegroups.com

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

Reply all
Reply to author
Forward
0 new messages