Skip to content

Buggy PostInvocationAdviceProvider::supports(Class<?> clazz) implementation #10236

@jvmlet

Description

@jvmlet

The current implementation doesn't allow to support MethodInvocation - inherited classes :

@Override
	public boolean supports(Class<?> clazz) {
		return clazz.isAssignableFrom(MethodInvocation.class);
	}

Looks like the intention was the opposite :

@Override
	public boolean supports(Class<?> clazz) {
		return MethodInvocation.class.isAssignableFrom(clazz);
	}

Please change here

Metadata

Metadata

Assignees

Labels

in: coreAn issue in spring-security-coretype: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions