提交 5c641b93 编写于 作者: K kohsuke

bug fix

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11562 71c3de6d-444a-0410-be80-ed276b4c234a
上级 e1e740cc
......@@ -143,7 +143,7 @@ public abstract class HudsonTestCase extends TestCase {
// look for recipe meta-annotation
Method runMethod= getClass().getMethod(getName());
for( final Annotation a : runMethod.getAnnotations() ) {
Recipe r = a.getClass().getAnnotation(Recipe.class);
Recipe r = a.annotationType().getAnnotation(Recipe.class);
if(r==null) continue;
final Runner runner = r.value().newInstance();
tearDowns.add(new LenientRunnable() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册