We're updating the issue view to help you get more done. 

Document requirement of java.xml.bind module on Java 9 when using XML descriptors

Description

The Test below will fail with JDK 9

ValidatorTest.java

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 package com.silbergrau.validation; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Retention; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import javax.validation.ConstraintViolationException; import javax.validation.Payload; import javax.validation.constraintvalidation.SupportedValidationTarget; import javax.validation.constraintvalidation.ValidationTarget; import org.jboss.weld.environment.se.Weld; import org.junit.Test; public class ValidatorTest { @Test(expected = ConstraintViolationException.class) public void test() { new Weld().initialize().select(ValidatorTest.class).get().validate("first", "second"); } @MyConstraint public void validate(final String arg1, final String arg2) { } @Target({ METHOD }) @Retention(RUNTIME) @Constraint(validatedBy = MyValidator.class) public @interface MyConstraint { String message() default "Person is not valid."; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; } @SupportedValidationTarget(ValidationTarget.PARAMETERS) public static class MyValidator implements ConstraintValidator<MyConstraint, Object[]> { @Override public boolean isValid(final Object[] args, final ConstraintValidatorContext context) { return false; } } }

Environment

JDK 9

Status

Assignee

Gunnar Morling

Reporter

Michael Hintenaus

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

5.4.1.Final
6.0.2.Final

Priority

Minor