File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
config/src/test/java/org/springframework/security Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -298,9 +298,13 @@ static Stream<Class<?>> getClassesToSerialize() throws Exception {
298298 for (BeanDefinition component : components ) {
299299 Class <?> clazz = Class .forName (component .getBeanClassName ());
300300 boolean isAbstract = Modifier .isAbstract (clazz .getModifiers ());
301+ if (isAbstract ) {
302+ continue ;
303+ }
301304 boolean matchesExpectedSerialVersion = ObjectStreamClass .lookup (clazz )
302305 .getSerialVersionUID () == securitySerialVersionUid ;
303- if (!isAbstract && matchesExpectedSerialVersion ) {
306+ boolean isUnderTest = generatorByClassName .containsKey (clazz );
307+ if (matchesExpectedSerialVersion || isUnderTest ) {
304308 classes .add (clazz );
305309 }
306310 }
You can’t perform that action at this time.
0 commit comments