search for default annotation method (IDEA-70739)

This commit is contained in:
anna
2011-06-08 23:05:04 +04:00
parent 6657bc1baf
commit 01855006ec
7 changed files with 63 additions and 16 deletions
@@ -0,0 +1,5 @@
package pack1;
public @interface A {
int intValue();
}
@@ -0,0 +1,11 @@
package pack1;
class Usage {
@A(intValue = 11)
void foo() {
}
@A(intValue = 42)
void bar() {
}
}
@@ -0,0 +1,5 @@
package pack1;
public @interface A {
int value();
}
@@ -0,0 +1,11 @@
package pack1;
class Usage {
@A(11)
void foo() {
}
@A(value = 42)
void bar() {
}
}
@@ -40,6 +40,10 @@ public class RenameMethodMultiTest extends MultiFileTestCase {
doTest("pack1.A", "void staticMethod(int i)", "renamedStaticMethod");
}
public void testDefaultAnnotationMethod() throws Exception {
doTest("pack1.A", "int value()", "intValue");
}
public void testRename2OverrideFinal() throws Exception {
try {
doTest("p.B", "void method()", "finalMethod");