aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/ajcTests.xml6
-rw-r--r--tests/bugs/OverloadedITDNPE.java10
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml
index ded12e25e..6b7f15050 100644
--- a/tests/ajcTests.xml
+++ b/tests/ajcTests.xml
@@ -7178,4 +7178,10 @@
<compile files="main/Driver.java,main/p2/AbstractTest.aj,main/p1/ConcreteTest.aj"/>
<run class="main.Driver"/>
</ajc-test>
+
+ <ajc-test dir="bugs" pr="51919"
+ title="Polymorphic ITD fails in CVS HEAD (From ajdt 1.1.6)">
+ <compile files="OverloadedITDNPE.java" />
+ </ajc-test>
+
</suite>
diff --git a/tests/bugs/OverloadedITDNPE.java b/tests/bugs/OverloadedITDNPE.java
new file mode 100644
index 000000000..989beacd5
--- /dev/null
+++ b/tests/bugs/OverloadedITDNPE.java
@@ -0,0 +1,10 @@
+aspect LogManager {
+ public void Loggable.logTrace(Object message) {
+ }
+ // no crash if the next method on the next line is renamed
+ public void Loggable.logTrace(Object message, Throwable t) {
+ }
+}
+
+interface Loggable {
+}