cglib AOP;annotation Inherited;and together use have problem

cglib AOP:Code Generation Library
proxy:jdk dynamic proxy must base on interface
cglib:override

annotation Inherited:@Inherited make annotation inherited
@Inherited
public @interface AnnTest {}
alert
    1:@Inherited only usable to Class annotation when use Class extend
    2:@Inherited disrelated to Method 
        if:Method not overrided (real will invoke super class method)
        else:Method overrided annotation not inherited(current method hava our implement donot hava annonation)

when together use have problem
1:cglib use override proxy method
2:voerrided method cannot Inherited annotation

你可能感兴趣的:(AOP,jdk)