Browse Source

Bugzilla Bug 51919

   Polymorphic ITD fails in CVS HEAD (From ajdt 1.1.6)
tags/v_preCompileLoopAlteration
aclement 20 years ago
parent
commit
36f8e3c561
2 changed files with 16 additions and 0 deletions
  1. 6
    0
      tests/ajcTests.xml
  2. 10
    0
      tests/bugs/OverloadedITDNPE.java

+ 6
- 0
tests/ajcTests.xml View File

@@ -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>

+ 10
- 0
tests/bugs/OverloadedITDNPE.java View File

@@ -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 {
}

Loading…
Cancel
Save