interface Base { static interface Inner { } } class Test implements Base { static class InnerTest implements Inner { } } aspect ForceWeaverToUnpackAllTypes { before() : staticinitialization(*) && !within(ForceWeaverToUnpackAllTypes) {} }