[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Wrong method of uninstrumented class executed

Hi Alexander,

Thanks for replying so quickly. I pushed my code and was preparing an extra IApplication for you to reproduce the problem. Then I noticed that I couldn't launch that application. It took me quite a while to figure out what's going on, but now that explains everything!

I wasn't aware that, when you add the AspectJ nature to a Java project, the Java builder of that project is *replaced* by the ajbuilder, rather than just augmented by it. So, when I uninstalled AJDT the ajbuilder became missing, the JDT builder wasn't configured anymore, and nothing compiled any source code in that project anymore. Not even a "Clean Project" had any effect on the bin folder of that project. The .class files weren't deleted. They stayed in place, but weren't updated anymore. The Java editor happily reported introduced errors and created the impression that a compiler was working underneath. Wrong!

So that explains my original problem. I was indeed using .class files that were out of sync with their source files.

I'll try to solve the problem by moving the small .aj file into it's own project where no real Java sources live together with it.

Thanks again and

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 27.05.2018 um 08:08 schrieb Alexander Kriegisch:
Hello Eike.

Would you mind sharing your code or optimally a minimal, condensed
SSCCE[*] version of it, which reproduces and illustrates your problem? A
GitHub repo would be nice, a ZIP would be the second best thing.

[*] http://sscce.org/