Skip to content

CDI security: Unannotated inherited methods may be restricted when they should not #4992

@michalszynkiewicz

Description

@michalszynkiewicz

Describe the bug
For the case in the $subject, determineSecurityAnnotationFromBindings#determineSecurityAnnotationFromBindings returns annotations from the subclass even if the method is not overriden

Expected behavior
If we want to be consistent with JSR 250 section 2.1 point 4, constraint from the subclass should not be applied here.

To Reproduce
Steps to reproduce the behavior:
Run CDIAccessDefaultTest.shouldAccessInheritedAllowedMethod separately

Metadata

Metadata

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions