Skip to content

Commit

Permalink
Have Hibernate Validator disable the JavaFX value extractors integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne authored and gsmet committed Dec 11, 2018
1 parent 145d706 commit 68b767f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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");
Expand Down

0 comments on commit 68b767f

Please sign in to comment.