I am able to call the display method as if it is actually part of Hello Class . I know that its because of Weaving. But, as it is Obvious, I am getting Compile time error if I directly reference the method.
I Checked the generated Output Class files, those are just 2 Simple Class files named Hello.class and World.class . I am Sure that there is no extra Runtime is involved,its just normal JVM. I am not able to understand ,How those Class files are weaved.
Please explain, How it is working?
Joined: Sep 27, 2006
Anyway, I understood with decompiling the class files.
subject: AOP, Calling class method that actually doesn't belong to that class