aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-07 08:33:35 +0000
committeraclement <aclement>2005-11-07 08:33:35 +0000
commit85cde56e2795a70ddc79e59a74652b66218385e0 (patch)
treeee77ae4861c749146d9706aa36cec66d2c8920c1 /tests
parentb8b6452001ef25a8f6fb4d49b0a0b95958e8fc1b (diff)
downloadaspectj-85cde56e2795a70ddc79e59a74652b66218385e0.tar.gz
aspectj-85cde56e2795a70ddc79e59a74652b66218385e0.zip
testcode for pr113066
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs150/pr113066/Consts.java4
-rw-r--r--tests/bugs150/pr113066/TestNPE.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java1
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml5
4 files changed, 14 insertions, 0 deletions
diff --git a/tests/bugs150/pr113066/Consts.java b/tests/bugs150/pr113066/Consts.java
new file mode 100644
index 000000000..d79bcbdec
--- /dev/null
+++ b/tests/bugs150/pr113066/Consts.java
@@ -0,0 +1,4 @@
+package a;
+public class Consts {
+ static String A_CONST="bla";
+}
diff --git a/tests/bugs150/pr113066/TestNPE.java b/tests/bugs150/pr113066/TestNPE.java
new file mode 100644
index 000000000..2a722fd08
--- /dev/null
+++ b/tests/bugs150/pr113066/TestNPE.java
@@ -0,0 +1,4 @@
+package a;
+import static a.Consts.A_CONST;
+public class TestNPE {}
+
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index 01344255a..3a7560290 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -51,6 +51,7 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public void testITDCtor_pr112783() { runTest("Problem with constructor ITDs");}
*/
+ //public void testPossibleStaticImports_pr113066() { runTest("possible static imports bug");}
public void testBrokenDecp_pr112476() { runTest("binary weaving decp broken");}
public void testUnboundFormal_pr112027() { runTest("unexpected error unboundFormalInPC");}
public void testNPEScopeSetup_pr115038() { runTest("NPE in ensureScopeSetup");}
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index 2f43ab7d3..4dab46ce2 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -17,6 +17,11 @@
</run>
</ajc-test>
+
+ <ajc-test dir="bugs150/pr113066" title="possible static imports bug">
+ <compile files="Consts.java,TestNPE.java" options="-1.5"/>
+ </ajc-test>
+
<ajc-test dir="java5/staticImports" title="import static java.lang.System.out">
<compile files="StaticImport.aj" options="-1.5"/>
</ajc-test>