Browse Source

263666: missing counter for around advice differing in return type

tags/pre268419
aclement 15 years ago
parent
commit
b8a9c0463f

+ 7
- 0
tests/bugs164/pr263666/x/A.java View File

@@ -0,0 +1,7 @@
package x;

public class A {
public boolean a() {
return false;
}
}

+ 13
- 0
tests/bugs164/pr263666/x/B.java View File

@@ -0,0 +1,13 @@
package x;

public class B {
private int b() {
return b();
}

@Override
protected Object clone() throws CloneNotSupportedException {
b();
return super.clone();
}
}

+ 32
- 0
tests/bugs164/pr263666/x/OverrideOptions.aj View File

@@ -0,0 +1,32 @@
package x;
public aspect OverrideOptions
{















/**
* Comment A
*/
boolean around() : execution( public boolean A.a() ) && this( A )
{
return false;
}
/**
* Comment B
*/
int around() : execution(private int B.b(..)) && this(B){
return 0;
}
}

Loading…
Cancel
Save