/** * Assertion that the corresponding value is reduced to a constant during compilation. * * @param value the value that must be constant during compilation */ public static <T> void compilationConstant(Object value) { if (!CompilerDirectives.isCompilationConstant(value)) { neverPartOfCompilation("Value is not compilation constant"); } }
/** * Assertion that the corresponding value is reduced to a constant during compilation. * * @param value the value that must be constant during compilation * @since 0.8 or earlier */ public static <T> void compilationConstant(Object value) { if (!CompilerDirectives.isCompilationConstant(value)) { neverPartOfCompilation("Value is not compilation constant"); } }
/** * Assertion that the corresponding value is reduced to a constant during compilation. * * @param value the value that must be constant during compilation * @since 0.8 or earlier */ public static <T> void compilationConstant(Object value) { if (!CompilerDirectives.isCompilationConstant(value)) { neverPartOfCompilation("Value is not compilation constant"); } }