Bug 88620 - Support pointcut overloading and omission of arguments to be bound
Summary: Support pointcut overloading and omission of arguments to be bound
Status: REOPENED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 582496 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-21 04:24 EST by Eric Bodden CLA
Modified: 2023-10-04 00:05 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Bodden CLA 2005-03-21 04:24:12 EST
I would like to see pointcut overloading supported in future versions, because I 
think it's very natural for Java programmers to have this, compared to method 
overloading.

One issue, Gregor raised is the one that people also requested the feature of 
omitting certain parameters in pointcuts, such as:

pointcut foo(Object o1): foo(Object o1, Object o2);

If one *does* want to allow this, this is of course an issue:
What happens in the case

pointcut foo(Object o): foo(Object o, String s);

... where ...

pointcut foo(Object o, String s): call(* Object.equals(..)) && this(o) && 
target(s);

Problem: Should foo(String s) only match calls to Strings, as foo(Object o, 
String s) does, or should it omit the constraint introduced by target(s), since 
s is not bound?

So either one could drop this feature of omission altogether or one could find 
some sensible semantics for this ambiguity. But overloading would be nice anyway 
IMHO.
Comment 1 Adrian Colyer CLA 2005-08-17 15:19:12 EDT
this is a perfectly valid feature request but we have no immediate plans to implement it so marking as 
"LATER" for consideration in future planning cycles.
Comment 2 Eclipse Webmaster CLA 2009-08-30 02:50:21 EDT
LATER/REMIND bugs are being automatically reopened as P5 because the LATER and REMIND resolutions are deprecated.
Comment 3 Alexander Kriegisch CLA 2023-10-04 00:05:34 EDT
*** Bug 582496 has been marked as a duplicate of this bug. ***