Skip to main content

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

I guess there is something subtle going on as I'm having no luck
recreating any issue here, my attempts just compile fine.

Are you able to share the code with me that is failing to compile? (via email?)

Andy

On 21 September 2010 07:51,  <softweave@xxxxxxxxxxx> wrote:
> 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.
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>


Back to the top