@GwtIncompatible(value="Class.isAssignableFrom") public final class Assertions extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertClassIsNotExportable(Class<?> klass)
Asserts that
klass does not have any annotations that imply that it is exportable. |
public static void assertClassIsNotExportable(Class<?> klass)
klass
does not have any annotations that imply that it is exportable.
Classes which make use of the CompileTimeConstant annotation should never be exported as
Closure JS (which these annotations enable) because there would be no way to enforce the
annotation's semantics when the JS code gets compiled.
Note that it's still ok for them to get GWT-compiled to JS, because only other Java GWT code can call them.