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:[email protected] > skype:matthewadams12 > yahoo:matthewadams > aol:matthewadams12 > google-talk:[email protected] > msn:[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 > > -- 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. _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
