I am getting a “cannot be resolved” error when I try to do this:
class Tag{
public static final int blah = 1231;
}
enum Things{
COOL (Tag.blah, "blah"); //error here
}
the compiler complains that it cannot find the Tag class on the line above.
Well turns out the error was just stupidity on my part.
I was referring to a member variable, (blah in above example) that did not exist! So it wasn’t resolving Tag.blah!