Bug 147845 - Generic abstract aspect hierarchies 3 deep or higher can fail when type parameters have bounds
Summary: Generic abstract aspect hierarchies 3 deep or higher can fail when type param...
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.5.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-20 06:16 EDT by Adrian Colyer CLA
Modified: 2007-07-29 09:20 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 Adrian Colyer CLA 2006-06-20 06:16:42 EDT
The program below should compile happily, but fails with:

[error] Type B does not meet the specification for type parameter 1 (A extends MyBase) in generic type Base
abstract aspect Middle<B extends MyBase> extends Base<B> {}
                ^^^^^                                      


The test program:
------------------

interface MyBase {};
interface MyMarker extends MyBase {}

abstract aspect Base<A extends MyBase> {}

abstract aspect Middle<B extends MyBase> extends Base<B> {}

aspect Sub extends Middle<MyMarker> {}
Comment 1 Adrian Colyer CLA 2006-06-21 03:02:44 EDT
fix now available in latest builds
Comment 2 Eclipse Webmaster CLA 2007-07-29 09:20:23 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991