의 미러
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-27 05:54:38 +02:00
22 lines
592 B
Java
22 lines
592 B
Java
|
|
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 {
|
|
String s = "f" + "oo";
|
|
int x = s.indexOf("o");
|
|
Tester.check(true, "Kilroy was here");
|
|
}
|
|
}
|
|
|
|
class C {
|
|
}
|
|
aspect A {
|
|
/** Xlint warning expected where FileWriter is outside code controlled by implementation */
|
|
declare parents : String extends Runnable; // CW 20 Xlint warning
|
|
}
|