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

CDI extension should not rely on @WithAnnotations filtering

Description

@WithAnnotations currently used to filter out that should not be wrapped with validation proxy is not checking for annotations on implemented interfaces and on super classes. Hence in cases like:

1 2 3 4 5 6 7 8 9 10 @ValidateOnExecution(type = ExecutableType.ALL) public interface ShipmentService { public void findShipment(@NotNull String id); } public class ShipmentServiceImpl implements ShipmentService { @Override public void findShipment(String id) { } }

ShipmentServiceImpl will not be proxied and no validation will be performed on its method calls. a discussion from weld-dev mailing list has some additional information (could be found here).
Based on this we need to remove the usage of this annotation and add our own filter.

Environment

None

Status

Assignee

Marko Bekhta

Reporter

Marko Bekhta

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

Priority

Major