summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2006-10-03 13:04:18 +0000
committeraclement <aclement>2006-10-03 13:04:18 +0000
commita67ec0d3c573b37b0d1bbc8b2400da430dfb2faa (patch)
treeffc759615c26f508a32f38fb639b976d097c6e61 /tests
parentaf08e729f0ca9f49ca139f1099eb2dd197be6ce2 (diff)
downloadaspectj-a67ec0d3c573b37b0d1bbc8b2400da430dfb2faa.tar.gz
aspectj-a67ec0d3c573b37b0d1bbc8b2400da430dfb2faa.zip
test and fix for 149071
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs153/pr149071/AspectItd.java8
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java2
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/ajc153.xml1
3 files changed, 9 insertions, 2 deletions
diff --git a/tests/bugs153/pr149071/AspectItd.java b/tests/bugs153/pr149071/AspectItd.java
index 30e749169..54a633ab5 100644
--- a/tests/bugs153/pr149071/AspectItd.java
+++ b/tests/bugs153/pr149071/AspectItd.java
@@ -1,11 +1,17 @@
public aspect AspectItd {
//private interface Holder {}
private int Holder.x;
- static aspect Inner {
+ static class Inner {
int doIt(Holder h) {
return h.x++;
}
}
+
+ public static void main(String []argv) {
+ new Inner().doIt(new HolderImpl());
+ }
}
interface Holder{}
+
+class HolderImpl implements Holder {}
diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
index e32630e4c..ee11353fb 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
@@ -29,6 +29,7 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// public void testAmbiguousBinding_pr121805() { runTest("ambiguous binding");}
// public void testNoIllegalStateExceptionWithGenericInnerAspect_pr156058() { runTest("no IllegalStateException with generic inner aspect"); }
// public void testNegatedAnnotationMatchingProblem_pr153464() { runTest("negated annotation matching problem");}
+ public void testVisibilityProblem_pr149071() { runTest("visibility problem");}
public void testMissingLineNumbersInStacktraceAfter_pr145442() { runTest("missing line numbers in stacktrace after");}
public void testMissingLineNumbersInStacktraceAround_pr145442() { runTest("missing line numbers in stacktrace around");}
public void testGenericArrays_pr158624() { runTest("generics and arrays"); }
@@ -63,7 +64,6 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public void testVerifyErrNoTypeCflowField_pr145693_1() { runTest("verifyErrNoTypeCflowField"); }
public void testVerifyErrInpathNoTypeCflowField_pr145693_2() { runTest("verifyErrInpathNoTypeCflowField"); }
public void testCpathNoTypeCflowField_pr145693_3() { runTest("cpathNoTypeCflowField"); }
- // public void testVisibilityProblem_pr149071() { runTest("visibility problem");}
// public void testAdviceNotWovenAspectPath_pr147841() { runTest("advice not woven on aspectpath");}
public void testGenericSignatures_pr148409() { runTest("generic signature problem"); }
// public void testBrokenIfArgsCflowAtAj_pr145018() { runTest("ataj crashing with cflow, if and args");}
diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
index 9ebb3fca3..ea791e8d0 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
+++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
@@ -190,6 +190,7 @@
<ajc-test dir="bugs153/pr149071" title="visibility problem">
<compile files="AspectItd.java"/>
+ <run class="AspectItd"/>
</ajc-test>
<ajc-test dir="bugs153/pr147841" title="advice not woven on aspectpath">