1
0
şunun yansıması https://github.com/eclipse-aspectj/aspectj.git eşitlendi 2024-07-24 22:04:44 +02:00
org.aspectj/tests/new/MissingTypeInDeclareParents.java

22 satır
592 B
Java
Ham Normal Görünüm Geçmiş

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 {
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 {
/** Xlint warning expected where FileWriter is outside code controlled by implementation */
declare parents : String extends Runnable; // CW 20 Xlint warning
2002-12-16 19:51:06 +01:00
}