Ok, thanks.
Would you mind raising a bug with a test case attached here?
http://abc.comlab.ox.ac.uk/bugs
That way we could try to consider this issue before the next release.
Eric
From: Majordomo list server [mailto:majordomo@comlab.ox.ac.uk] On Behalf
Of Thiago Bartolomei
Sent: Tuesday, September 12, 2006 5:21 AM
To: abc-users@comlab.ox.ac.uk
Subject: Re: [abc-users] Warning instead of error when type is not found
Hi,
I agree it should be an error, because it is not a pattern, it is a type
reference. I just wanted to use this switch to keep compatible with ajc,
because I am building a tool with abc in the background. Users usually
compile their programs with ajc and it would be strange if my tool says
it cannot compile a program that ajc compiled.
Thanks,
Thiago
On 9/5/06, Eric Bodden <eric.bodden@mail.mcgill.ca> wrote:
Hello.
No, I am not aware of such a switch and in fact I am not sure why ajc
does not give you an error as well. Why should it not be an error to
reference a type which does not exist? It's certainly an error in any
Java program.
Eric
From: Majordomo list server [mailto:majordomo@comlab.ox.ac.uk] On Behalf
Of Thiago Bartolomei
Sent: Tuesday, August 29, 2006 7:48 AM
To: abc-users@comlab.ox.ac.uk
Subject: [abc-users] Warning instead of error when type is not found
Hi,
abc sends an error when a type is not found in some pointcuts, where ajc
would just emit a warning. The following code, for example:
public aspect MyAspect {
pointcut foo() : this(AClass);
}
Since AClass does not exist in the system, abc throws a "Could not find
advice formal or type "AClass"", while ajc just gives a warning. Is it
possible to send a command line argument to abc, so that this error
becomes a warning? I read the pdf with the command line options but
could not find that.
Best regards,
Thiago
Received on Tue Sep 12 12:45:46 2006
This archive was generated by hypermail 2.1.8 : Tue Sep 12 2006 - 14:00:08 BST