OMG.  Total copy/paste error.  I actually copied an extra paren at the
end by accident.  It's not the leading one that was missing, it was
the trailing one that was extraneous.  Thanks!

On Tue, Sep 11, 2012 at 12:40 PM, Andy Clement <[email protected]> wrote:
> it *is* user error strictly speaking, but you can blame me for the
> unhelpful message you are getting :)
>
> You are missing a leading 'paren' ahead of the first hasmethod.
>
> Instead of:
>
> declare error : hasmethod(@javax.validation.constraints..* static *
> *(..)) || hasmethod(static * *(.., @javax.validation.constraints..*
> (*), ..))) :
>
> It should be:
>
> declare error : (hasmethod(@javax.validation.constraints..* static *
> *(..)) || hasmethod(static * *(.., @javax.validation.constraints..*
> (*), ..))) :
>
> Andy
>
> On 11 September 2012 09:10, Matthew Adams <[email protected]> wrote:
>> In light of the fact that bean validation still doesn't support static
>> methods, I'd like to add a declare error statement that makes it a
>> compiler error to try to do that.  I'm doing something wrong here.
>> The following fails to compile:
>>
>> /* 95 */        declare error :
>> /* 96 */                hasmethod(@javax.validation.constraints..* static * 
>> *(..))
>> /* 97 */                || hasmethod(static * *(.., 
>> @javax.validation.constraints..*
>> (*), ..))) :
>> /* 98 */                        "can't validate static methods";
>>
>> Compiler error is:
>> [ERROR] Failed to execute goal
>> org.codehaus.mojo:aspectj-maven-plugin:1.4:compile (default-compile)
>> on project foundation-domain: Compiler errors:
>> [ERROR] error at hasmethod(@javax.validation.constraints..* static * *(..))
>> [ERROR]
>> [ERROR] 
>> /Users/matthew/Documents/bitbucket/scispike-foundation/foundation/domain/src/main/aspect/com/scispike/foundation/domain/aspectj/validation/ApacheBvalMethodValidationAspect.aj:96:0::0
>> Syntax error on token "*", ")" expected
>>
>> It's complaining about the star following "static" on line 96 above.
>> Any tips here?
>>
>> -matthew
>>
>> --
>> mailto:[email protected]
>> skype:matthewadams12
>> googletalk:[email protected]
>> http://matthewadams.me
>> http://www.linkedin.com/in/matthewadams
>> _______________________________________________
>> aspectj-users mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users



-- 
mailto:[email protected]
skype:matthewadams12
googletalk:[email protected]
http://matthewadams.me
http://www.linkedin.com/in/matthewadams
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to