So, as an example, I have this JNI code:
public static void nothing() { } static {
I found that I was literally creating a βnothingβ function to call it earlier if necessary, but I also want it to be called if it was referenced earlier or if we don't call nothing() . Now I could make some kind of unpleasant logic, including checking Boolean, but then you get into thread safety and blah. I suppose you could, but it's ugly. Is there a way to explicitly call GNUTLS.<clinit>(); ?
source share