[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Weaving into Java System Libs
|
- From: Andrew Eisenberg <andrew@xxxxxxxxxxxx>
- Date: Tue, 4 Aug 2009 09:56:36 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=Odvfsct+7fk0J71XkwBWTPyTowxslnbXzu88r8a4MXM=; b=IY0IwC5Judx6mfrgyfGA7o17GbOZM/L262Be/gSUrBaU9EQwz6DvySi8VVNGY7QxE8 YrCNxOcQWkoEFtSX+DpaW1EFpi9ozVHg/DB+P75kfLCRxFXE6PgSf6IAevuI+S7wwNs7 sYvpqRywzhibpG/9Tc1ZKo8tIipP0J26jZe1Y=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=DfDJNRevL4r65OlZbLMwA759QJ36Ta9gc2iXnhBNzB6U3BWL6IY+deEa57HfRZOCkb EMboO49012BlsbLcLATiqaI7WjHQaYcj3iz7+dy85ni7v/k6ahNa3KwMKKyoh221caSf RB938Nfe7WlrbqDmVBXURWz0ro/UmViNQo5UA=
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
>