From 85cde56e2795a70ddc79e59a74652b66218385e0 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 7 Nov 2005 08:33:35 +0000 Subject: [PATCH] testcode for pr113066 --- tests/bugs150/pr113066/Consts.java | 4 ++++ tests/bugs150/pr113066/TestNPE.java | 4 ++++ tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 1 + tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 5 +++++ 4 files changed, 14 insertions(+) create mode 100644 tests/bugs150/pr113066/Consts.java create mode 100644 tests/bugs150/pr113066/TestNPE.java 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 @@ + + + + + -- 2.39.5