[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] ajc fails to recognize overloaded method

Building with aspectj-maven-plugin version 1.3.1 and aspectrt.jar 1.6.9, I get this spurious compilation error:

[INFO] [aspectj:compile {execution: default}]
[ERROR] The method editStandardField(IStandardField) in the type IStandardFieldTable is not applicable for the arguments (String, IStandardField)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Compiler errors:
error at standardFieldTable.editStandardField(validationServiceName, standardField);
                   ^^^^^^^^^^^

The IStandardFieldTable interface definition overloads the definition of editStandardField as follows:

public interface IStandardFieldTable {
   
    /**
     * Edit a Standard Field
     * @param standardField
     * @throws EvaluationException
     */
    public void editStandardField(IStandardField standardField) throws EvaluationException;
   
    /**
     * edit a StandardField for Alternate Provider ID
     * @param validationServiceName
     * @param standardField
     * @throws EvaluationException
     */
    public void editStandardField(String validationServiceName,
            IStandardField standardField) throws EvaluationException;
}

This compiles fine using javac -- as it should.