Skip to main content



      Home
Home » Newcomers » Newcomers » Problem in concrete-aspect implementation
Problem in concrete-aspect implementation [message #248476] Sat, 09 February 2008 12:33
Eclipse UserFriend
Hello,

I am trying to implement concrete aspect in aop.xml but I am facing some
problem. Here are the details:
My abstract aspect is:

public abstract aspect AspectA {
pointcut executionFoo() : execution(* *.Foo(..));
abstract pointcut callFoo();
before() : executionFoo() {
System.out.println("Entering Foo...");
}
after() : executionFoo() {
System.out.println("Leaving Foo...");
}
}

I want to define the definition of callFoo() in aop.xml at load time.
Hence I am doing something like this:
<aspectj>
<aspects>
<concrete-aspect name="AspectAImpl" extends="AspectA">
<pointcut name="callFoo" ex-pression="call(* *.Foo(..))"/>

</concrete-aspect>
</aspects>
</aspectj>

However on execution of aj ClassA, I am getting error message:
[WeavingURLClassLoader] error Attempt to concretize a non-abstract aspect:
<concrete-aspect name='lo
ading.AspectAImpl' extends='AspectA'/> in aop.xml
[WeavingURLClassLoader] error Concrete-aspect 'loading.AspectAImpl' could
not be registered
[WeavingURLClassLoader] warning failure(s) registering aspects. Disabling
weaver for class loader or
g.aspectj.weaver.loadtime.WeavingURLClassLoader
Inside Foo!!

I am using aspect 1.5. Can somebody guide me in sorting out the problem?
Am I missing something?

Thanks in advace,
Kunal Pathak.
Previous Topic:Beginner Q on exporting to jar
Next Topic:Toggle cvs repository
Goto Forum:
  


Current Time: Wed Jun 04 10:39:44 EDT 2025

Powered by FUDForum. Page generated in 0.08069 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top