Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] declare error & type pattern?

Filed enhancement request for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=292264


matthewadams12 wrote:
> 
> Currently, declare error only accepts a pointcut expression.  It would
> be nice if it also accepted a type pattern.
> 
> For example:
> 
> declare error: (@Endable *) && (!hasmethod(protected * end(Date)) :
> "no protected end(Date) method";
> 
> It's kind of like compile-time enforcement of interface methods, only
> I want it to support non-public methods.
> 
> How can I do this at compile time without having declare error
> enhanced to support type patterns?
> 
> Thanks,
> Matthew
> 
> -- 
> mailto:matthew@xxxxxxxxxxxxxxx
> skype:matthewadams12
> yahoo:matthewadams
> aol:matthewadams12
> google-talk:matthewadams12@xxxxxxxxx
> msn:matthew@xxxxxxxxxxxxxxx
> http://matthewadams.me
> http://www.linkedin.com/in/matthewadams
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> 

-- 
View this message in context: http://www.nabble.com/declare-error---type-pattern--tp25619498p25891843.html
Sent from the AspectJ - users mailing list archive at Nabble.com.



Back to the top