[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] warning on wrong constructor
|
- From: "Andrew Eisenberg" <andrew@xxxxxxxxxxxx>
- Date: Mon, 17 Nov 2008 07:51:09 -0800
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :sender:to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=fsC0K1wzrNuirgK0x4YOyDK7ilTL/I2kkTKo4QsUEzc=; b=b0Trq6DIS3gjOD/+fjyjK1kFs8i+F6fsh/QALQWenfc6QVejjDYAcfNsR9twnm9Ric Q+KT7xbIoZ1LO49p0d2kuS7MTeKN2oy+YRhFkjzNdsIXoA/vMwEGOeFOnay0nguqI5l3 1KZ5jxIak3joXGdC6sjBuv60ThrKzmKqzMo9M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references:x-google-sender-auth; b=GL3MKYL7AuFDXiazAUiW48IG1KT2u3Et/74DHy9tAAO7EmNxGu0yzhZjtmwsuOVb5+ 7hbEyFqb4g9ri80Q+QmKGjkiOvueaEDffwoRTwYEqWaM9bZEF20y8F9nTo8ARMmp4hph J/qo6OAH2cupM46tGgEF5E4xKE/Mlq6DVpTeg=
Yes, declare warning is compile time only. You could advise this at
runtime and throw an exception if it doesn't conform to you
specifications.
On Fri, Nov 14, 2008 at 8:58 AM, Luca Ferrari <fluca1978@xxxxxxxxxxx> wrote:
> Hi,
> I don't know if it is possible, but I'd like to declare a warning for a
> constructor calls of objects SerializableObject+ when the constructors do not
> initialize all the Collection+ declared within the same class. My thought is
> to write a pointcut that exports the context of the object being constructed,
> so that with reflection I can see the declared collections and get their
> values (that should not be null). The problem is that declare warning works
> not at run-time, right? So I cannot get a context or execute reflection on the
> object. Is there a way to achieve this?
>
> Thanks,
> Luca
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>