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.

BadReferences.java 319B

12345678910111213141516171819202122232425
  1. aspect BadReferences {
  2. public void main(String[] args) {
  3. int x = C.x;
  4. Object o = new C.Inner();
  5. }
  6. }
  7. class C implements I1, I2 {
  8. }
  9. interface I1 {
  10. public static int x = 1;
  11. public static class Inner {
  12. }
  13. }
  14. interface I2 {
  15. public static int x = 2;
  16. public static class Inner {
  17. }
  18. }