--- /dev/null
+public aspect Aspect pertypewithin(*){}
--- /dev/null
+public interface GenericService<T extends SomeInterface> {
+ public void doStuff(T t);
+}
+
--- /dev/null
+public class GenericServiceImpl<T extends SomeInterface> implements
+GenericService<T> {
+ public void doStuff(T t) {}
+}
+
--- /dev/null
+public class Main {
+ public static void main(String[] args) {
+ new SomeServiceImpl();
+ }
+}
+
--- /dev/null
+public interface SomeInterface {}
+
--- /dev/null
+public class SomeServiceImpl extends GenericServiceImpl<SomeInterface> {
+ @Override
+ public void doStuff(SomeInterface someInterface) {
+ }
+}
+
// 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");
}
<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>