public class TopLevelType3 { public static class NestedType {} public static void main(String[] args) { TopLevelType3 tlt = new TopLevelType3(); NestedType nt = new NestedType(); nt.someMethod(); } } aspect SomeAspect { public void TopLevelType3.NestedType.someMethod() { // error - can't do that } }