diff options
author | Andy Clement <aclement@pivotal.io> | 2017-11-01 15:08:27 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2017-11-01 15:31:10 -0700 |
commit | 6765fdc34c775e99799b36d88cff8ab88dffc8e7 (patch) | |
tree | 13f35d56861a8685bd7bc20db34f3ae99a94bb91 /tests/bugs1813/generics | |
parent | dc89660c13270539cf9ff71d288086631a658665 (diff) | |
download | aspectj-6765fdc34c775e99799b36d88cff8ab88dffc8e7.tar.gz aspectj-6765fdc34c775e99799b36d88cff8ab88dffc8e7.zip |
Fix 526734 - Incorrect generic override decp validation when binary weaving
Diffstat (limited to 'tests/bugs1813/generics')
-rw-r--r-- | tests/bugs1813/generics/A.java | 8 | ||||
-rw-r--r-- | tests/bugs1813/generics/AlreadyImplementsA.java | 15 | ||||
-rw-r--r-- | tests/bugs1813/generics/BaseI.java | 7 | ||||
-rw-r--r-- | tests/bugs1813/generics/BaseT.java | 4 | ||||
-rw-r--r-- | tests/bugs1813/generics/BindInterfaceA.aj | 8 | ||||
-rw-r--r-- | tests/bugs1813/generics/ConcreteIImpl.java | 5 | ||||
-rw-r--r-- | tests/bugs1813/generics/ConcreteTImpl.java | 6 | ||||
-rw-r--r-- | tests/bugs1813/generics/Runner.java | 7 |
8 files changed, 60 insertions, 0 deletions
diff --git a/tests/bugs1813/generics/A.java b/tests/bugs1813/generics/A.java new file mode 100644 index 000000000..85ec82ea2 --- /dev/null +++ b/tests/bugs1813/generics/A.java @@ -0,0 +1,8 @@ +import java.util.List; + + +public interface A<T extends BaseT, I extends BaseI> { + + public T setInputs(List<I> inputs); + +}
\ No newline at end of file diff --git a/tests/bugs1813/generics/AlreadyImplementsA.java b/tests/bugs1813/generics/AlreadyImplementsA.java new file mode 100644 index 000000000..56f650d03 --- /dev/null +++ b/tests/bugs1813/generics/AlreadyImplementsA.java @@ -0,0 +1,15 @@ + +import java.util.List; + + +public class AlreadyImplementsA { + + + public ConcreteTImpl setInputs(List<ConcreteIImpl> inputs) { + return null; + } + + + + +}
\ No newline at end of file diff --git a/tests/bugs1813/generics/BaseI.java b/tests/bugs1813/generics/BaseI.java new file mode 100644 index 000000000..31f975853 --- /dev/null +++ b/tests/bugs1813/generics/BaseI.java @@ -0,0 +1,7 @@ + + +public interface BaseI { + + + +}
\ No newline at end of file diff --git a/tests/bugs1813/generics/BaseT.java b/tests/bugs1813/generics/BaseT.java new file mode 100644 index 000000000..72046e956 --- /dev/null +++ b/tests/bugs1813/generics/BaseT.java @@ -0,0 +1,4 @@ + +public interface BaseT { + +}
\ No newline at end of file diff --git a/tests/bugs1813/generics/BindInterfaceA.aj b/tests/bugs1813/generics/BindInterfaceA.aj new file mode 100644 index 000000000..2d3e56965 --- /dev/null +++ b/tests/bugs1813/generics/BindInterfaceA.aj @@ -0,0 +1,8 @@ + + +public aspect BindInterfaceA { + + declare parents: AlreadyImplementsA implements A<ConcreteTImpl,ConcreteIImpl>; + + +} diff --git a/tests/bugs1813/generics/ConcreteIImpl.java b/tests/bugs1813/generics/ConcreteIImpl.java new file mode 100644 index 000000000..3cbdac163 --- /dev/null +++ b/tests/bugs1813/generics/ConcreteIImpl.java @@ -0,0 +1,5 @@ + + +public class ConcreteIImpl implements BaseI { + +} diff --git a/tests/bugs1813/generics/ConcreteTImpl.java b/tests/bugs1813/generics/ConcreteTImpl.java new file mode 100644 index 000000000..aba55be3a --- /dev/null +++ b/tests/bugs1813/generics/ConcreteTImpl.java @@ -0,0 +1,6 @@ + + +public class ConcreteTImpl implements BaseT { + + +} diff --git a/tests/bugs1813/generics/Runner.java b/tests/bugs1813/generics/Runner.java new file mode 100644 index 000000000..6d4468b0f --- /dev/null +++ b/tests/bugs1813/generics/Runner.java @@ -0,0 +1,7 @@ +public class Runner { + public static void main(String[] argv) { + if (new AlreadyImplementsA() instanceof A) { + System.out.println("ok"); + } + } +} |