Browse Source

258653: test and fix

tags/V1_6_3rc1
aclement 15 years ago
parent
commit
b932237acf

+ 19
- 0
tests/bugs163/pr258653/staticinit.java View File

@@ -0,0 +1,19 @@
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;

@Aspect
class staticinit {
@After("staticinitialization(MyType)")
public void print(){
System.out.println("INITIALIZED");
}
}

//public
class MyType {
public static void main(){
new MyType();
}
}



+ 7
- 3
tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java View File

@@ -27,9 +27,13 @@ import org.aspectj.testing.Utils;
import org.aspectj.testing.XMLBasedAjcTestCase;

public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// public void testGenericMethodBridging_pr251326() {
// runTest("itd anonymous inner class in wrong package");
// }
// public void testGenericMethodBridging_pr251326() {
// runTest("itd anonymous inner class in wrong package");
// }

public void testGetNode_pr258653() {
runTest("getNode");
}

public void testAtTargetPlus_pr255856() {
runTest("attarget with plus");

+ 4
- 0
tests/src/org/aspectj/systemtest/ajc163/ajc163.xml View File

@@ -1,6 +1,10 @@
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>

<suite>
<ajc-test dir="bugs163/pr258653" title="getNode">
<compile files="staticinit.java" options="-1.5 -emacssym"/>
</ajc-test>

<ajc-test dir="bugs163/pr154427" title="getMethod returning null">
<compile files="AuthorizationImpl.java Authorization.java AuthorizationAdmin.java CallAndMethodSignatureAspect.java CallTest.java" options=""/>

Loading…
Cancel
Save