From 249f832fef29f56e23134a7e38f0bce8e9e209eb Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 21 Apr 2011 15:25:09 +0000 Subject: 339974: testcode. 342605: testcode (but deactivated) --- tests/bugs1612/pr339974/City.java | 7 +++++++ tests/bugs1612/pr339974/TrafficCalculator.java | 20 ++++++++++++++++++++ tests/bugs1612/pr342605/Code.java | 5 +++++ .../org/aspectj/systemtest/ajc1612/Ajc1612Tests.java | 8 ++++++++ tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml | 10 ++++++++++ 5 files changed, 50 insertions(+) create mode 100644 tests/bugs1612/pr339974/City.java create mode 100644 tests/bugs1612/pr339974/TrafficCalculator.java create mode 100644 tests/bugs1612/pr342605/Code.java (limited to 'tests') diff --git a/tests/bugs1612/pr339974/City.java b/tests/bugs1612/pr339974/City.java new file mode 100644 index 000000000..60ba5a15b --- /dev/null +++ b/tests/bugs1612/pr339974/City.java @@ -0,0 +1,7 @@ +public class City { + + private String name; + + private Country country; +} +class Country {} diff --git a/tests/bugs1612/pr339974/TrafficCalculator.java b/tests/bugs1612/pr339974/TrafficCalculator.java new file mode 100644 index 000000000..398e47bca --- /dev/null +++ b/tests/bugs1612/pr339974/TrafficCalculator.java @@ -0,0 +1,20 @@ +public aspect TrafficCalculator { + + public static class City.TrafficCalculator { + Function EXTREME = createExtremeTraffic(); + Function BASIC = createBasicTraffic(); + } + + + private static Function createExtremeTraffic() { + return null; + } + private static Function createBasicTraffic() { + return null; + } + + public static class Time { } + + +} +class Function {} diff --git a/tests/bugs1612/pr342605/Code.java b/tests/bugs1612/pr342605/Code.java new file mode 100644 index 000000000..3d3b790d4 --- /dev/null +++ b/tests/bugs1612/pr342605/Code.java @@ -0,0 +1,5 @@ +import this.is.Madeup; + +public class Code { + public static void main(String []argv) {} +} diff --git a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java index 3a1156f42..26140e933 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java @@ -21,6 +21,14 @@ import org.aspectj.testing.XMLBasedAjcTestCase; */ public class Ajc1612Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testItitNpe_339974() { + runTest("itit npe"); + } + +// public void testNoImportError_342605() { +// runTest("noimporterror"); +// } + public void testClashingLocalTypes_342323() { runTest("clashing local types"); } diff --git a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml index d8895fecc..49b27f558 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml +++ b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml @@ -2,6 +2,16 @@ + + + + + + + + + + -- cgit v1.2.3