[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] compilation erros
|
Yusuf,
What are you actually trying to do?
The problem your pointcut is that it is matching _every_ joinpoint in the
control flow of createComponentView()which
I suspect is not what you want. Normally you would target on particular
join point then perhaps restrict the matches to a particular control flow.
Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM United Kingdom Limited
Hursley Park, Winchester, SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
"Yusuf Haroon"
<yharoon@xxxxxxxxxxxxxxx>
Sent by: aspectj-users-bounces@xxxxxxxxxxx
21/03/2007 14:00
Please respond to
aspectj-users@xxxxxxxxxxx |
|
To
| <aspectj-users@xxxxxxxxxxx>
|
cc
|
|
Subject
| [aspectj-users] compilation erros |
|
Hi,
I am getting compilation errors in the attached
file for a very simple aspect. I was wondering if someone could help me
decode the errors. Thank you.
This is what the aspect looks like:
package com.tomotherapy.app.ps.components.prescription;
import org.aspectj.lang.annotation.*;
@Aspect
public class TestPrescriptionViewAspect
{
@Around("cflow(execution(PrescriptionView
PrescriptionComponent.createComponentView()))")
public PrescriptionView aroundCall()
{
return (PrescriptionView)new
TestPrescriptionView();
}
}
And this is code that I’m trying to weave:
package com.tomotherapy.app.ps.components.prescription;
import com.tomotherapy.shared.appfrmwrk.component.TomoComponent;
public class PrescriptionComponent extends
TomoComponent
<PrescriptionModel, PrescriptionView,
PrescriptionController, IPrescriptionController>
{
public PrescriptionComponent(){
}
protected PrescriptionView
createComponentView()
{
return new
PrescriptionView();
}
}
<<errormessages.txt>> _______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
Information:AspectJ: Weaving 1 items(s)
Information:Compilation completed with 9 errors and 7 warnings
Information:9 errors
Information:7 warnings
Error:incompatible return type applying to constructor-execution(void com.tomotherapy.app.ps.components.prescription.TestPrescriptionViewAspect.<init>())
Error:incompatible return type applying to constructor-execution(void com.tomotherapy.app.ps.components.prescription.TestPrescriptionViewAspect.<init>())
Error:around on initialization not supported (compiler limitation)
Error:around on initialization not supported (compiler limitation)
Error:around on pre-initialization not supported (compiler limitation)
Error:around on pre-initialization not supported (compiler limitation)
Error:incompatible return type applying to constructor-call(void com.tomotherapy.app.ps.components.prescription.TestPrescriptionView.<init>())
Error:incompatible return type applying to constructor-call(void com.tomotherapy.app.ps.components.prescription.TestPrescriptionView.<init>())
Error:incompatible return type applying to staticinitialization(void com.tomotherapy.app.ps.components.prescription.TestPrescriptionViewAspect.<clinit>())
Warning:Note: Recompile with -Xlint:unchecked for details.
Warning:advice defined in org.aspectj.ajdt.internal.compiler.lookup.WarnOnSwallowedException has not been applied [Xlint:adviceDidNotMatch]
Warning:advice defined in com.tomotherapy.app.ps.components.prescription.TestPrescriptionViewAspect has not been applied [Xlint:adviceDidNotMatch]
Warning:advice defined in org.aspectj.ajdt.internal.compiler.parser.AllowAssertAndEnumAsIdentifierTokensInPointcutExpressions has not been applied [Xlint:adviceDidNotMatch]
Warning:advice defined in org.aspectj.ajdt.internal.compiler.parser.AllowAssertAndEnumAsIdentifierTokensInPointcutExpressions has not been applied [Xlint:adviceDidNotMatch]
Warning:advice defined in org.aspectj.ajdt.internal.compiler.parser.AllowAssertAndEnumAsIdentifierTokensInPointcutExpressions has not been applied [Xlint:adviceDidNotMatch]
C:\Projects\yharoon_view\source\code\java\build\jars\ZipLock.java
Warning:Warning:Note: C:\Projects\yharoon_view\source\code\java\build\jars\ZipLock.java uses unchecked or unsafe operations.