aboutsummaryrefslogtreecommitdiffstats
path: root/lint
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-01-31 16:20:37 -0800
committerTor Norbye <tnorbye@google.com>2012-02-01 19:31:27 -0800
commit53bb8b772ebedaa5131f7a3a3ee621ec42ef43e4 (patch)
tree0c0625a58f353c3bec20144b2f9e67ebb1bb4799 /lint
parentb348f6652868d39cd7733795718926e19e3a5169 (diff)
downloadsdk-53bb8b772ebedaa5131f7a3a3ee621ec42ef43e4.zip
sdk-53bb8b772ebedaa5131f7a3a3ee621ec42ef43e4.tar.gz
sdk-53bb8b772ebedaa5131f7a3a3ee621ec42ef43e4.tar.bz2
Regression test
Change-Id: Ica2631561584fc520e0776843c784d68c1f35093
Diffstat (limited to 'lint')
-rw-r--r--lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ApiLookupTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ApiLookupTest.java b/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ApiLookupTest.java
index 1b2a251..a7c2de9 100644
--- a/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ApiLookupTest.java
+++ b/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ApiLookupTest.java
@@ -51,6 +51,12 @@ public class ApiLookupTest extends AbstractCheckTest {
"<init>", "(I)V"));
}
+ public void test2() {
+ // Regression test:
+ // This used to return 11 because of some wildcard syntax in the signature
+ assertTrue(mDb.getCallVersion("java/lang/Object", "getClass", "()") <= 1);
+ }
+
@Override
protected Detector getDetector() {
fail("This is not used in the ApiDatabase test");