< prev index next >
test/jdk/java/lang/annotation/ParameterAnnotations.java
Print this page
*** 87,98 ****
if (m.getName().equals("nop")) {
Annotation[][] ann = m.getParameterAnnotations();
equal(ann.length, 2);
Annotation foo = ann[0][0];
Annotation bar = ann[1][0];
! equal(foo.toString(), "@Named(value=\"foo\")");
! equal(bar.toString(), "@Named(value=\"bar\")");
check(foo.equals(foo));
check(! foo.equals(bar));
}
}
}
--- 87,98 ----
if (m.getName().equals("nop")) {
Annotation[][] ann = m.getParameterAnnotations();
equal(ann.length, 2);
Annotation foo = ann[0][0];
Annotation bar = ann[1][0];
! equal(foo.toString(), "@Named(\"foo\")");
! equal(bar.toString(), "@Named(\"bar\")");
check(foo.equals(foo));
check(! foo.equals(bar));
}
}
}
< prev index next >