Bug 210849 - Support ProceedingJoinPoint.proceed(Object...)
Summary: Support ProceedingJoinPoint.proceed(Object...)
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Runtime (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-24 18:00 EST by Ramnivas Laddad CLA
Modified: 2007-11-25 00:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ramnivas Laddad CLA 2007-11-24 18:00:08 EST
Since @AspectJ is usable only in Java5+, it is reasonable for users to expect that ProceedingJoinPoint.proceed(Object...) should be supported instead of ProceedingJoinPoint.proceed(Object[]).

I see that this restriction may be due to JoinPointImpl that implements ProceedingJoinPoint. Since it must be compatible with versions before Java5, the varargs feature may not be used. I wonder if the following rearrangement of interfaces and classes will help?

ProceedingJoinPoint extends JoinPoint  (as is currently)
JoinPointImpl implements JoinPoint (not ProceedingJoinPoint)
ProceedingJoinPointImpl extends JoinPointImpl implements ProceedingJoinPoint
Comment 1 Ramnivas Laddad CLA 2007-11-25 00:39:02 EST
Commenting on my comment.

My assertion that ProceedingJoinPoint is used in Java5 isn't quite accurate. In Spring, for example, the schema-style AOP is useful in pre-Java5, yet may use ProceedingJoinPoint.

I guess this bug may be marked "WONTFIX", unless we want to take the route of aspectjrt.jar vs. aspectjrt5.jar and have two different versions of ProceedingJoinPoint.