package test3; interface ErasureGet { T get(); } public class Erasure { T value; public Erasure(T t) { value = t; } public Erasure() { value = null; } public int run() { @SuppressWarnings("unchecked") ErasureGet obj = (ErasureGet)new Erasure("1234"); return obj.get().length(); } }