Skip to content

Commit 18c4671

Browse files
committed
JAXB scan skips annotated interfaces
Issue: SPR-13221
1 parent 41b5858 commit 18c4671

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-oxm/src/main/java/org/springframework/oxm/jaxb/ClassPathJaxb2TypeScanner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -104,7 +104,7 @@ public Class<?>[] scanPackages() throws UncategorizedMappingException {
104104

105105
protected boolean isJaxb2Class(MetadataReader reader, MetadataReaderFactory factory) throws IOException {
106106
for (TypeFilter filter : JAXB2_TYPE_FILTERS) {
107-
if (filter.match(reader, factory)) {
107+
if (filter.match(reader, factory) && !reader.getClassMetadata().isInterface() ) {
108108
return true;
109109
}
110110
}

0 commit comments

Comments
 (0)