aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bugs169/pr309440/foobar/CrashAspectJCompiler.java10
-rw-r--r--tests/bugs169/pr309440/foobar/ExportMode.java41
-rw-r--r--tests/bugs169/pr309440/jsr305.jarbin0 -> 31866 bytes
-rw-r--r--tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java6
-rw-r--r--tests/src/org/aspectj/systemtest/ajc169/ajc169.xml5
5 files changed, 62 insertions, 0 deletions
diff --git a/tests/bugs169/pr309440/foobar/CrashAspectJCompiler.java b/tests/bugs169/pr309440/foobar/CrashAspectJCompiler.java
new file mode 100644
index 000000000..6baca78f4
--- /dev/null
+++ b/tests/bugs169/pr309440/foobar/CrashAspectJCompiler.java
@@ -0,0 +1,10 @@
+package foobar;
+
+
+public class CrashAspectJCompiler
+{
+ public void export(ExportMode aMode)
+ {
+
+ }
+}
diff --git a/tests/bugs169/pr309440/foobar/ExportMode.java b/tests/bugs169/pr309440/foobar/ExportMode.java
new file mode 100644
index 000000000..6611c8504
--- /dev/null
+++ b/tests/bugs169/pr309440/foobar/ExportMode.java
@@ -0,0 +1,41 @@
+package foobar;
+
+import javax.annotation.Nonnull;
+
+public enum ExportMode
+{
+ /**
+ * export configuration and project data
+ */
+ COMPLETE("Complete"),
+
+ /**
+ * exports configuration only
+ */
+ CONFIGURATION_ONLY("Configuration only");
+
+ /**
+ * The display-name
+ */
+ private final String mDisplayName;
+
+ /**
+ * Stores the displayName
+ * @param aDisplayName
+ */
+ ExportMode(@Nonnull String aDisplayName)
+ {
+ mDisplayName = aDisplayName;
+ }
+
+ /**
+ *
+ * @return the display name
+ */
+ public @Nonnull
+ String getDisplayName()
+ {
+ return mDisplayName;
+ }
+
+}
diff --git a/tests/bugs169/pr309440/jsr305.jar b/tests/bugs169/pr309440/jsr305.jar
new file mode 100644
index 000000000..43807b02f
--- /dev/null
+++ b/tests/bugs169/pr309440/jsr305.jar
Binary files differ
diff --git a/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java b/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java
index 2a51db99a..d6abf0796 100644
--- a/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java
@@ -29,7 +29,13 @@ public class Ajc169Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// public void testAdvisingPrivilegedAccessMethod_307147() {
// runTest("advising privileged access method");
// }
+ /*
+ public void testCrashParamAnnos_309440() {
+ runTest("crash param annos");
+ }
+ */
+ // 1.6.9 M1 below here
public void testSubtleGenericsIssue_308773() {
runTest("subtle generics problem");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml b/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml
index 8a83d5bc4..c877cd92b 100644
--- a/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml
+++ b/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml
@@ -21,6 +21,11 @@
</compile>
</ajc-test>
+ <ajc-test dir="bugs169/pr309440" title="crash param annos">
+ <compile files="foobar/ExportMode.java" classpath="jsr305.jar" options="-1.6"/>
+ <compile files="foobar/CrashAspectJCompiler.java" classpath="jsr305.jar" options="-1.6"/>
+ </ajc-test>
+
<ajc-test dir="bugs169/pr307120" title="advising privileged access member - 2">
<compile files="Test.java A.java" options="-showWeaveInfo">
<message kind="weave" text="Type 'A' (A.java) has intertyped method from 'Test'"/> <!-- getFoo and getGoo -->