Community
Participate
Working Groups
abstract class Pair<FROM,TO> { } class Road extends Pair<String,String> { } abstract aspect AbstractAspect<FROM,TO,T extends Pair<FROM,TO>> {} aspect RoadNetwork extends AbstractAspect<String,String,Road> {} These classes will compile under ajc, so long as they are all compiled together. However, if AbstractAspect + Pair are compiled separately and placed into a Jar file then the following error is given; > [error] Type Road does not meet the specification for type parameter 3 (T > extends Pair<FROM,TO>) in generic type AbstractAspect > public aspect RoadNetwork extends AbstractAspect<String,String,Road> { } > ^^^^^^^^^^ I'll attach a complete example! Cheers, Dave
Created attachment 33835 [details] Example code
Removing "Pair<FROM,TO> => Pair" in AbstractAspect is a workaround.
diagnose in 1.5.4 timeframe
variation of changes in bug 242797 would fix this