Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] Strange Happenings with AspectJ

Hi,

Interesting problem.  I think its worth raising as an AspectJ bug.  It
would be nice to know a little more information:

- it works when you build everything from source, fails when you
binary weave.  So, what compiler are you using to build the source
when you do binary weaving, standard 'javac' ? the jdt compiler? And
what version of Java? 1.4? 1.5?  Given that AspectJ always weaves
bytecode (even if you give it source) it looks like it is a compiler
difference and the bytecode produced by one of the compilers is
choking the weaver.

- what version of ajc are you using?

- can we see the aspect involved?

- what was in the 40ish lines you removed to go down from 220 to 175,
just the same kind of result set processing code?

- if you do raise a bug, it would be useful to include the built
.class files if you can.  ideally the .class file resulting from javac
building your source (or whatever compiler you are using if its not
javac)  and the .class file resulting from using ajc to build your
source *without* including the aspect in the build.  between these two
we should be able to recognize what pattern in the bytecode causes
weaving to fail.

It shouldnt be related to the size of the method - we have guards in
place that check for any situation where methods are too big.

Andy.
---
Andy Clement
AspectJ Dev


Back to the top