public aspect Aspect pertypewithin(*){} |
public interface GenericService<T extends SomeInterface> { | |||||
public void doStuff(T t); | |||||
} | |||||
public class GenericServiceImpl<T extends SomeInterface> implements | |||||
GenericService<T> { | |||||
public void doStuff(T t) {} | |||||
} | |||||
public class Main { | |||||
public static void main(String[] args) { | |||||
new SomeServiceImpl(); | |||||
} | |||||
} | |||||
public interface SomeInterface {} | |||||
public class SomeServiceImpl extends GenericServiceImpl<SomeInterface> { | |||||
@Override | |||||
public void doStuff(SomeInterface someInterface) { | |||||
} | |||||
} | |||||
// runTest("itd anonymous inner class in wrong package"); | // 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() { | public void testExtendingASI_pr252722() { | ||||
runTest("extending AbstractSecurityInterceptor"); | runTest("extending AbstractSecurityInterceptor"); | ||||
} | } |
<suite> | <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"> | <ajc-test dir="bugs163/pr258653" title="getNode"> | ||||
<compile files="staticinit.java" options="-1.5 -emacssym"/> | <compile files="staticinit.java" options="-1.5 -emacssym"/> | ||||
</ajc-test> | </ajc-test> |