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.

Pr112880.aj 552B

12345678910111213141516171819202122232425262728293031323334353637
  1. abstract class AbstractAttributeGuiFactory<A,B> {
  2. public A getThis() {
  3. return null;
  4. }
  5. public B getThat() {
  6. return null;
  7. }
  8. }
  9. class ColorAttributeGuiFactory extends AbstractAttributeGuiFactory<C1,C2> {}
  10. class C1 {}
  11. class C2 {}
  12. aspect ForceParameterization {
  13. before() : call(C1 *(..)) || call(C2 *(..)) {
  14. System.out.println("method returning C1 or C2");
  15. }
  16. }
  17. public class Pr112880 {
  18. public static void main(String[] args) {
  19. ColorAttributeGuiFactory f = new ColorAttributeGuiFactory();
  20. f.getThis();
  21. f.getThat();
  22. }
  23. }