Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] decalare parents: implementing generic interface

 

Hello,

 

I have the following construct:

 

public interface TestIF<T extends TestIF> {}

public class TestClass {}

public aspect TestAspect {

 

            declare parents: TestClass implements TestIF<TestClass>;

}

 

The later aspect does not compile, although

public class TestClass implements TestIF<TestClass> {

}

is a valid class. Are there any limitations on declare parents with generic
types?

 

 

 

Thanks a lot,

Vincenz


Back to the top