mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
a sketch of a test for a naming issue that doesn't appear to be an
actual bug
This commit is contained in:
parent
6c9118bfa4
commit
f1d911e518
28
tests/bugs/AroundNames.java
Normal file
28
tests/bugs/AroundNames.java
Normal file
@ -0,0 +1,28 @@
|
||||
public class AroundNames {
|
||||
public static void main(String[] args) {
|
||||
new Base().doit();
|
||||
new Derived().doit();
|
||||
}
|
||||
}
|
||||
|
||||
class Base {
|
||||
static private final void m() {}
|
||||
|
||||
public void doit() {
|
||||
m();
|
||||
}
|
||||
}
|
||||
|
||||
class Derived {
|
||||
static private final void m() { return; } // "Derived"; }
|
||||
|
||||
public void doit() {
|
||||
m();
|
||||
}
|
||||
}
|
||||
|
||||
aspect A {
|
||||
Object around(): execution(* m()) {
|
||||
return proceed();
|
||||
}
|
||||
}
|
@ -1,22 +1,12 @@
|
||||
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
|
||||
<suite>
|
||||
<ajc-test dir="bugs" pr="29665"
|
||||
title="Inconsistant stack height with around">
|
||||
<compile files="StackError.java"/>
|
||||
<run class="StackError"/>
|
||||
<ajc-test dir="bugs" pr="36056"
|
||||
title="Ajc 1.1 rc1 java.lang.VerifyError with messy arounds and naming">
|
||||
<compile files="AroundNames.java"/>
|
||||
<run class="AroundNames"/>
|
||||
</ajc-test>
|
||||
|
||||
|
||||
<ajc-test dir="bugs/messyAround" pr="36056"
|
||||
title="Ajc 1.1 rc1 java.lang.VerifyError with messy arounds">
|
||||
<compile files="aspects/Trace.aj,cap/OptionList.java,DebugTrace.aj">
|
||||
<message kind="warning" line="102"/>
|
||||
<message kind="warning" line="124"/>
|
||||
<message kind="warning" line="138"/>
|
||||
</compile>
|
||||
<run class="cap.OptionList"/>
|
||||
</ajc-test>
|
||||
|
||||
<!--
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user