Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
import java.util.Map;
import java.util.Set;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.springframework.asm.Type;
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.core.annotation.AnnotationUtils;
Expand All @@ -45,6 +48,8 @@
@Deprecated
abstract class AnnotationReadingVisitorUtils {

private static final Log logger = LogFactory.getLog(AnnotationReadingVisitorUtils.class);

public static AnnotationAttributes convertClassValues(Object annotatedElement,
@Nullable ClassLoader classLoader, AnnotationAttributes original, boolean classValuesAsString) {

Expand Down Expand Up @@ -94,7 +99,8 @@ else if (value instanceof Class[]) {
}
entry.setValue(value);
}
catch (Throwable ex) {
catch (Exception ex) {
logger.warn("Cannot convert class values", ex);
// Class not found - can't resolve class reference in annotation attribute.
result.put(entry.getKey(), ex);
}
Expand Down