2002-12-16 19:51:06 +01:00
|
|
|
|
|
|
|
import org.aspectj.testing.Tester;
|
|
|
|
import java.util.*;
|
|
|
|
import java.io.*;
|
|
|
|
|
|
|
|
/** @testcase unmatched type name in a declare parents should result in a warning in -Xlint mode */
|
|
|
|
public class MissingTypeInDeclareParents {
|
|
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
2004-01-23 21:38:34 +01:00
|
|
|
String s = "f" + "oo";
|
|
|
|
int x = s.indexOf("o");
|
2002-12-16 19:51:06 +01:00
|
|
|
Tester.check(true, "Kilroy was here");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class C {
|
|
|
|
}
|
|
|
|
aspect A {
|
2003-01-08 02:18:02 +01:00
|
|
|
/** Xlint warning expected where FileWriter is outside code controlled by implementation */
|
2004-01-23 21:38:34 +01:00
|
|
|
declare parents : String extends Runnable; // CW 20 Xlint warning
|
2002-12-16 19:51:06 +01:00
|
|
|
}
|