Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Weaving into Java System Libs

Well, main methods are static, so there is no object available before
the main method executes.

call(*.new) should work in most cases, however.

On Tue, Aug 4, 2009 at 9:25 AM, Nikolas
Nehmer<nnehmer@xxxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I have a follow up question. Is there any chance to capture the result of a
> "new" call to the class containing the main method? staticinitialization
> does a good job in capturing this specific constructor-call itself, but is
> incapabe of capturing the result (aka reference to the object just
> instantiated). Any ideas?
>
> Best Nikolas
>


Back to the top