i think this is an easy one for you:
I have a Controller in which i want to access a static field within another class XY (groovy class, located in package src/groovy …). But this gets an NoClassDefFoundError.
public class XY{ public static final String a = "something" }
in controller: XY.a causes error!!!
Other classes in the same package than Class XY dont cause problems.
what i am doing wrong?
I found out what the problem was:
The class XY compiled, but i tried to assign a “” to a (accidentallydeclared) static integer.
That was the reason why the whole class could not be initialized and the error occoured.
Are there any propertys to set the compiler to print warnings?
Thanks for your hints!