You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }