Thanks for your quick response. Do you think this problem can be avoided by
modifying the helloify program, or should a different approach be taken to
designing ComplexNumber.java?
Derek.
> Thanks for your quick response. Do you think this problem can be
avoided by
> modifying the helloify program, or should a different approach be
taken to
> designing ComplexNumber.java?
>
[quoted text clipped - 3 lines]
> From: "Jeffrey Palm" <jpalm@ccs.neu.edu>
> Newsgroups:
comp.compilers.tools.javacc,comp.lang.java.help,comp.lang.java.softwaretools
> To: "Derek Meehan" <d.j.meehan@blueyonder.co.uk>
> Sent: Monday, December 01, 2003 1:40 PM
[quoted text clipped - 5 lines]
>>> am however having difficulty understanding results when running the
>>> program on the latest JDK virtual machine. I wonder if anyone could
help
>>> clarify this.
>>>
[quoted text clipped - 86 lines]
>>> }
>>> }
//*************************************************************************
>>> // Test the above methods
>>>
[quoted text clipped - 57 lines]
>> --
>> Jeffrey Palm --> http://www.ccs.neu.edu/home/jpalm
Yeah, it's not *really* a bug, more of a feature left out of the
helloify program. You'd have to modify that for this to work, I guess,
I don't know much abou BCEL.
But, why don't you look at aspectj. You could have simple 'before'
advice to captuer the helloify behavior:
before(): execution(* *.(..)) {
System.out.println("Hello from ...");
}
That'll do it -- you should check it out, and get back if you have any
questions:
http://aspectj.org
Jeff

Signature
Jeffrey Palm --> http://jeffpalm.com