]> source.dussan.org Git - aspectj.git/commitdiff
Bugzilla Bug 51919
authoraclement <aclement>
Tue, 24 Feb 2004 10:00:30 +0000 (10:00 +0000)
committeraclement <aclement>
Tue, 24 Feb 2004 10:00:30 +0000 (10:00 +0000)
   Polymorphic ITD fails in CVS HEAD (From ajdt 1.1.6)

tests/ajcTests.xml
tests/bugs/OverloadedITDNPE.java [new file with mode: 0644]

index ded12e25e83a57ddb04f14ebbc0de7c598f4532d..6b7f1505062eb1e3f35e03c1ca98b4b38b08f128 100644 (file)
                <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 (file)
index 0000000..989beac
--- /dev/null
@@ -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 {
+}