Skip to content

Commit e5b7905

Browse files
authored
Bug Report: CDI tries to instantiate interface (Jersey 2.30) (#4847)
Signed-off-by: Jorge Bescos Gascon <[email protected]>
1 parent e97da04 commit e5b7905

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/cdi/jersey-cdi1x/src/main/java/org/glassfish/jersey/ext/cdi1x/internal/CdiComponentProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ private boolean bind(final Class<?> clazz, final Set<Class<?>> providerContracts
204204
final boolean isJaxRsResource = runtimeSpecifics.isJaxRsResource(clazz);
205205

206206
if (isJaxRsResource && !runtimeSpecifics.isAcceptableResource(clazz)) {
207-
LOGGER.warning(LocalizationMessages.CDI_NON_INSTANTIABLE_COMPONENT(clazz));
207+
LOGGER.log(clazz.isInterface() ? Level.FINE : Level.WARNING,
208+
LocalizationMessages.CDI_NON_INSTANTIABLE_COMPONENT(clazz));
208209
return false;
209210
}
210211

0 commit comments

Comments
 (0)