use of com.oracle.svm.core.option.HostedOptionKey in project graal by oracle.
the class RuntimeOptionFeature method collectOptionKeys.
private Object collectOptionKeys(Object obj) {
if (obj instanceof OptionKey) {
OptionKey<?> optionKey = (OptionKey<?>) obj;
if (!(optionKey instanceof HostedOptionKey)) {
OptionDescriptor optionDescriptor = optionKey.getDescriptor();
if (optionDescriptor == null) {
throw VMError.shouldNotReachHere("No OptionDescriptor registered for an OptionKey. Often that is the result of an incomplete build. " + "The registration code is generated by an annotation processor at build time, so a clean and full rebuild often helps to solve this problem");
}
reachableOptions.put(optionDescriptor, true);
}
}
return obj;
}
Aggregations