Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] compilation erros

Title: 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>>

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.

Back to the top