I'm trying to add a call into a private static inner class which calls another class's static method.
So for example:
public class A {
public static boolean isNumber(){...};
}
public class B {
private static class C {
static boolean isNumber() {
return A.isNumber();
}
}
}
I'm not all too familiar with static inner classes and how they work, but when I try to do this I keep getting a NoClassDefFoundError for class A.
Could not initialize class A
java.lang.NoClassDefFoundError: Could not initialize class A
Is this behavior expected when making a call to another static method from a inner static class?