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.

123456789101112131415161718
  1. import java.util.*;
  2. class C {
  3. Set<String> simple_local;
  4. Set<Set<String>> nested_local;
  5. }
  6. aspect Inter_Type_Injector {
  7. Set<String> C.simple_intertype;
  8. Set<Set<String>> C.nested_intertype;
  9. public void test() {
  10. Set<String> simple_local = new C().simple_local; // works
  11. Set<String> simple_intertype = new C().simple_intertype; // works
  12. Set<Set<String>> nested_local = new C().nested_local; // works
  13. Set<Set<String>> nested_intertype = new C().nested_intertype; // fails
  14. }
  15. }