@@ -0,0 +1 @@ | |||
public aspect Aspect pertypewithin(*){} |
@@ -0,0 +1,4 @@ | |||
public interface GenericService<T extends SomeInterface> { | |||
public void doStuff(T t); | |||
} | |||
@@ -0,0 +1,5 @@ | |||
public class GenericServiceImpl<T extends SomeInterface> implements | |||
GenericService<T> { | |||
public void doStuff(T t) {} | |||
} | |||
@@ -0,0 +1,6 @@ | |||
public class Main { | |||
public static void main(String[] args) { | |||
new SomeServiceImpl(); | |||
} | |||
} | |||
@@ -0,0 +1,2 @@ | |||
public interface SomeInterface {} | |||
@@ -0,0 +1,6 @@ | |||
public class SomeServiceImpl extends GenericServiceImpl<SomeInterface> { | |||
@Override | |||
public void doStuff(SomeInterface someInterface) { | |||
} | |||
} | |||
@@ -31,6 +31,14 @@ public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase { | |||
// runTest("itd anonymous inner class in wrong package"); | |||
// } | |||
public void testOrderingRepetitive_pr259279() { | |||
runTest("ordering repetitive method"); | |||
} | |||
public void testOrderingRepetitive_pr259279_2() { | |||
runTest("ordering repetitive method - 2"); | |||
} | |||
public void testExtendingASI_pr252722() { | |||
runTest("extending AbstractSecurityInterceptor"); | |||
} |
@@ -2,6 +2,17 @@ | |||
<suite> | |||
<ajc-test dir="bugs163/pr259279" title="ordering repetitive method"> | |||
<compile files="SomeServiceImpl.java SomeInterface.java Main.java GenericService.java GenericServiceImpl.java Aspect.java" options="-1.5"/> | |||
<run class="Main"/> | |||
</ajc-test> | |||
<ajc-test dir="bugs163/pr259279" title="ordering repetitive method - 2"> | |||
<compile files="GenericServiceImpl.java SomeServiceImpl.java SomeInterface.java Main.java GenericService.java Aspect.java" options="-1.5"/> | |||
<run class="Main"/> | |||
</ajc-test> | |||
<ajc-test dir="bugs163/pr258653" title="getNode"> | |||
<compile files="staticinit.java" options="-1.5 -emacssym"/> | |||
</ajc-test> |