Bug 63177 - related to bug 53028, which is correct compiler or documentation?
Summary: related to bug 53028, which is correct compiler or documentation?
Status: RESOLVED DUPLICATE of bug 53028
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.2.1   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-20 06:20 EDT by Laurie Hendren CLA
Modified: 2004-10-21 04:32 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 Laurie Hendren CLA 2004-05-20 06:20:18 EDT
In bug 53028 it was reported that the documentation of void return type for
around advice does not match the behaviour of the documentation.    This was 
reported as a 1.1.1 bug,  but it is still true for 1.2.    We have stumbled 
across this inconsitency ourselves.    Which is correct, the documentation or
the compiler?

The documentation says: "Whatever value the join point returned will be returned
by the around advice".

The compiler reports a type mismatch.
   Error applying to join point that doesn't return void.

Which is correct, the compiler or the documentation?   This seems to be a
relatively big change and needs to be highlighted somehow.
Comment 1 Andrew Clement CLA 2004-08-09 06:27:21 EDT
Resolved under bug 53028, the docs were incorrect - the compiler is right.

*** This bug has been marked as a duplicate of 53028 ***
Comment 2 Adrian Colyer CLA 2004-10-21 04:32:47 EDT
Fix released as part of AspectJ 1.2.1