diff options
author | aclement <aclement> | 2005-08-15 09:27:16 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-08-15 09:27:16 +0000 |
commit | 012ff4d7009a28cf8754cd1804936a5824f53312 (patch) | |
tree | a8b0818feacff75ccf4369400e6b1c2116045daf /tests/java5/generics/itds/sharing/GenericAspectA.aj | |
parent | 97eb517e2c79764c5a5eeef4b03b7ef21f75900d (diff) | |
download | aspectj-012ff4d7009a28cf8754cd1804936a5824f53312.tar.gz aspectj-012ff4d7009a28cf8754cd1804936a5824f53312.zip |
genericitds: more method/ctor ITDs that use their target types generic type variables. plus some basic generic aspects that combine the building blocks
Diffstat (limited to 'tests/java5/generics/itds/sharing/GenericAspectA.aj')
-rw-r--r-- | tests/java5/generics/itds/sharing/GenericAspectA.aj | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/java5/generics/itds/sharing/GenericAspectA.aj b/tests/java5/generics/itds/sharing/GenericAspectA.aj new file mode 100644 index 000000000..fcb3090ea --- /dev/null +++ b/tests/java5/generics/itds/sharing/GenericAspectA.aj @@ -0,0 +1,19 @@ +// Simple - adding an interface to a type via a generic aspect and decp +abstract aspect GenericAspect<A> { + + declare parents: A implements SimpleI; + + interface SimpleI {} + +} + +aspect GenericAspectA extends GenericAspect<Base> { + public static void main(String []argv) { + Base b = new Base(); + if (!(b instanceof SimpleI)) + throw new RuntimeException("Base should implement SimpleI!"); + } +} + +class Base {} + |