diff --git a/bean-validation/deployment/src/main/java/org/jboss/shamrock/beanvalidation/BeanValidationProcessor.java b/bean-validation/deployment/src/main/java/org/jboss/shamrock/beanvalidation/BeanValidationProcessor.java index 0be5b2ce020ba..2772de04d8e81 100644 --- a/bean-validation/deployment/src/main/java/org/jboss/shamrock/beanvalidation/BeanValidationProcessor.java +++ b/bean-validation/deployment/src/main/java/org/jboss/shamrock/beanvalidation/BeanValidationProcessor.java @@ -42,6 +42,7 @@ import org.jboss.shamrock.deployment.builditem.CombinedIndexBuildItem; import org.jboss.shamrock.deployment.builditem.HotDeploymentConfigFileBuildItem; import org.jboss.shamrock.deployment.builditem.InjectionFactoryBuildItem; +import org.jboss.shamrock.deployment.builditem.SystemPropertyBuildItem; import org.jboss.shamrock.deployment.builditem.substrate.ReflectiveClassBuildItem; import org.jboss.shamrock.deployment.builditem.substrate.ReflectiveFieldBuildItem; import org.jboss.shamrock.deployment.builditem.substrate.ReflectiveMethodBuildItem; @@ -52,6 +53,12 @@ class BeanValidationProcessor { private static final DotName VALIDATE_ON_EXECUTION = DotName.createSimple("javax.validation.executable.ValidateOnExecution"); + @BuildStep + SystemPropertyBuildItem disableJavaFXIntegrations() { + // Bug in GraalVM rc10: see https://github.com/oracle/graal/issues/851 + return new SystemPropertyBuildItem("org.hibernate.validator.force-disable-javafx-integration", "true"); + } + @BuildStep HotDeploymentConfigFileBuildItem configFile() { return new HotDeploymentConfigFileBuildItem("META-INF/validation.xml");