您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Const.java 444B

123456789101112131415161718192021
  1. import org.aspectj.testing.*;
  2. public class Const {
  3. public static void main(String[] args) {
  4. new Const().realMain(args);
  5. }
  6. public void realMain(String[] args) {
  7. int const = 2;
  8. int i = const * 2;
  9. Tester.check(false, "shouldn't have compiled");
  10. }
  11. public static void testme1() {
  12. int i = const + 1;
  13. }
  14. public static void testme2() {
  15. int j = Const.const + 1;
  16. }
  17. }