import java.util.*; public class Generics { public static void main(String []argv) { Generics inst = new Generics(); List ls = new ArrayList(); inst.setter(ls); List newls = inst.getter(); inst.setThing("abc"); String s = inst.getThing(); } } aspect X { private List Generics.listOfString; public List Generics.getter() { return listOfString; } public void Generics.setter(List los) { listOfString = los; } } aspect Y { private T Generics.thing; public T Generics.getThing() { return thing; } public void Generics.setThing(T thing) { this.thing = thing; } }