The annotation com.oracle.svm.core.annotate.AutomaticFeature is deprecated, and the GraalVM team recommends not enabling such features automatically, but rather have the user opt-in explicitly, or list the feature among the native-image parameters in the metadata. This also serves to align with what we already did in ORM 6 via https://hibernate.atlassian.net/browse/HHH-15484 : as the graal-sdk doesn’t expose this annotation. However t his is not a backport of https://hibernate.atlassian.net/browse/HHH-15484 , as the new API is not compatible with JDK8. We will still rely on the existing svm artifact to compile our hibernate-graalvm extension, but we’ll do so expecting it to be replaced by the graal-sdk artifact at runtime - so this needs a little care to be runtime compatible with both libraries to allow for the transition. |