In a way, yes. The behavior of before and after (returning/throwing)
advice can be mimicked using around advice.
However, if possible for performance reasons, it is better to use
before/after instead of around. The compiler will try to convert
around advice into before/after if possible, but it w
It passes information around programmatically, using the JDT object model.
On Tue, Nov 4, 2008 at 5:30 PM, tamal nath <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Where does the X ref tool get the cross cutting information from? Is there a
> xml file in which all the info is stored?
>
> Regards,
> Tml
>
>
The XRef tool is included with AJDT. AJDT uses the XRef tool to show
crosscutting relationships. You can grab the latest version that is
compatible with Eclipse 3.4 from the xref or the ajdt download site.
The XRef tool is available standalone so that you can add your own providers.
On Tue, No
-- Forwarded message --
From: tamal nath <[EMAIL PROTECTED]>
Date: Tue, Nov 4, 2008 at 6:37 PM
Subject: advices+XRef tool
To: [EMAIL PROTECTED]
Hi Ram,
I have 3 questions for you
1. Is the use of before and after advices optional in AspectJ? Can all
that they do be done usi
Hi,
I was looking at the website for XRef. It says:
"The latest version of the XRef tool is available in standalone from the
update site below, and is the version included with the latest development
builds of AJDT 1.5 for Eclipse 3.3. Note that this standalone version is
only for use with other
Hi,
Where does the X ref tool get the cross cutting information from? Is there a
xml file in which all the info is stored?
Regards,
Tml
___
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users
Hi Andy,,
I did a simple test on this new aspectj development build and it is not
working for runtime check.
public class C {
void m1(List e){}
}
aspect AC{
void around(): execution(* C.m1(..)) && args(List){} //:
Should match (it does)
void around(): execution(* C.m1(..)) && args(
Ah yes, you are right. I forgot about the runtime checks. Indeed it
seems that cast conversion seems to be the right thing here.
Thanks for the clarification!
Eric
2008/11/4 Bruno De Fraine <[EMAIL PROTECTED]>:
> Hello Eric,
>
> On 4-nov-08, at 04:16, Eric Bodden wrote:
>
2) args() should h
Hi,
Are use of before and after advices optional in AspectJ? Can all that they
do be done using around advice. It seems so.
Tamal
___
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users
Done.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=253784
This would be a big help to me, so if there is anything else I can do
to get it going let me know.
On Nov 4, 2008, at 11:51 AM, Andy Clement wrote:
Can we open an enhancement request to track this?
I'm interested the proposal, I d
This is not possible. Boolean is a final class, and so MyBoolean
cannot be a subclass of it. The return type of around advice must be
the original type (or a narrowing of it) because it must be statically
type safe wherever the advice is applied. Therefore the advice you
wrote can not compile.
Hi Everyone,
I'm new to the list, so I apologize if this is the wrong place to ask
such questions. I have searched the list, and googled around, but have not
found any information about my question yet.
I'm wondering if it is possible to implement some sort of custom autoboxing
using aspectj.
Can we open an enhancement request to track this?
I'm interested the proposal, I don't think it would be too hard to
implement. But it needs a bit more thinking time spent on it, and I'd like
to talk through some use cases in the enhancement request to make sure we
aren't adding something that co
Hi Mauro,
I'd raise a bug and include the link to your projects, so the info doesn't
get forgotten on the mailing list.
cheers,
Andy.
2008/11/4 Mauro Baluda <[EMAIL PROTECTED]>
> I created 2 minimal eclipse projects to highlight this
> IllegalAccessException
> http://mauro.netsons.org/files/bug
I created 2 minimal eclipse projects to highlight this IllegalAccessException
http://mauro.netsons.org/files/bug.zip
you can import both using
import->Existing projects into workspace
and then select the archive file
thank you,
Mauro
--
Computer science is no more about computers than astronomy i
Try it with the dev build from yesterday that includes the latest set of
253109 fixes
2008/11/3 Fernando Rubbo <[EMAIL PROTECTED]>
> I think we have a similar issue with the around's return. Look it out.
>
> public class B {
> List m(){ return null;}
> }
>
> aspect AB{
> List around() : e
You probably need to use the following pointcut:
execution(@Loggable * *.*(..)) || execution(* (@Loggable *).*(..))
-Ramnivas
On Tue, Nov 4, 2008 at 8:06 AM, Miguel Alcalde <[EMAIL PROTECTED]>wrote:
> Hi all.
>
> I'm trying to implement a declarative logging system. For that I have
> created @Lo
Hi all.
I'm trying to implement a declarative logging system. For that I have
created @Loggable annotation:
@Target({ElementType.TYPE, ElementType.METHOD})
@Inherited
@Retention(RetentionPolicy.RUNTIME)
public @interface Loggable {
LoggableLevel normalLevel()default LoggableLevel.INFO;
Hi Ramnivas
I am unit testing some old code in a project and I am not allowed to
modify the code,many of the functions under test take no parameters and
have return type void, so the way I am testing is to use AspectJ to
replace return values of functions within the function under test with
mocks
19 matches
Mail list logo