Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Static crosscutting

> All you need to do is to add those methods to your interface too.

Thanks, that is in fact what I was doing. Unfortunately the AspectJ
compiler was doing something funny to the interface. When viewed with
Eclipse's class file viewer, all methods had the following data
attached:

  Attribute: Name: Synthetic Length: 0

Both Eclipse and plain javac would then complain if I used any of these
methods, as if they were made invisible. I have no idea what is going on
here, but one workaround I found is to simply not advise the original
interface, but create a second, hidden interface that extends the
original interface, and advise that instead.

--
Eric Jain



Back to the top