提交 0cc77e81 编写于 作者: S Stephane Nicoll

Polish "Ensure indexer gracefully handle missing meta annotations"

Closes gh-22385
上级 87e5f0db
......@@ -114,7 +114,8 @@ class TypeHelper {
try {
return this.env.getElementUtils().getAllAnnotationMirrors(e);
}
catch (Throwable ex) {
catch (Exception ex) {
// This may fail if one of the annotation is not available
return Collections.emptyList();
}
}
......
......@@ -19,9 +19,12 @@ package org.springframework.context.index.sample.cdi;
import javax.transaction.Transactional;
/**
* Test candidate for {@link Transactional}.
* Test candidate for {@link Transactional}. This verifies that the annotation processor
* can process an annotation that declares itself an annotation that is not on the
* classpath.
*
* @author Vedran Pavic
* @author Stephane Nicoll
*/
@Transactional
public class SampleTransactional {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册