Bug 412921 - Provide wildcard for all supertypes of a type
Summary: Provide wildcard for all supertypes of a type
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-14 11:26 EDT by Christian Schulze CLA
Modified: 2013-07-14 11:26 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Schulze CLA 2013-07-14 11:26:39 EDT
When defining a pointcut we can match a type or any of its subtype using the "+" wildcard, e.g.

  pointcut something() : call(* SomeType+.*(..));

It would also be great to match all super-types of a certain type using for instance another wildcard "-", e.g.

  pointcut something() : handler(MyException-);

This would allow us to match all catch clauses that handle the exception.