equal
deleted
inserted
replaced
676 * this class. |
676 * this class. |
677 */ |
677 */ |
678 public native Object staticFieldBase(Field f); |
678 public native Object staticFieldBase(Field f); |
679 |
679 |
680 /** |
680 /** |
|
681 * Detect if the given class may need to be initialized. This is often |
|
682 * needed in conjunction with obtaining the static field base of a |
|
683 * class. |
|
684 * @return false only if a call to {@code ensureClassInitialized} would have no effect |
|
685 */ |
|
686 public native boolean shouldBeInitialized(Class<?> c); |
|
687 |
|
688 /** |
681 * Ensure the given class has been initialized. This is often |
689 * Ensure the given class has been initialized. This is often |
682 * needed in conjunction with obtaining the static field base of a |
690 * needed in conjunction with obtaining the static field base of a |
683 * class. |
691 * class. |
684 */ |
692 */ |
685 public native void ensureClassInitialized(Class<?> c); |
693 public native void ensureClassInitialized(Class<?> c); |