blob: 0748132d1d22e5ff6763f05656f3e8465074b21e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import org.aspectj.testing.Tester;
import org.aspectj.testing.Tester;
import java.rmi.RMISecurityException; // deprecated class
/** @testcase PR#602 PUREJAVA no deprecation warnings (regardless of -deprecation flag) */
public class DeprecationWarning {
public static void main(String[] args) {
boolean result = false;
try {
if (!result) throw new RMISecurityException("ok"); // CW 11 deprecated class
} catch (RMISecurityException e) {
result = true;
}
Tester.check(result, "no RMISecurityException");
}
}
|