]> source.dussan.org Git - aspectj.git/commitdiff
309440 testcode V1_6_9M1
authoraclement <aclement>
Fri, 16 Apr 2010 16:20:40 +0000 (16:20 +0000)
committeraclement <aclement>
Fri, 16 Apr 2010 16:20:40 +0000 (16:20 +0000)
tests/bugs169/pr309440/foobar/CrashAspectJCompiler.java [new file with mode: 0644]
tests/bugs169/pr309440/foobar/ExportMode.java [new file with mode: 0644]
tests/bugs169/pr309440/jsr305.jar [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java
tests/src/org/aspectj/systemtest/ajc169/ajc169.xml

diff --git a/tests/bugs169/pr309440/foobar/CrashAspectJCompiler.java b/tests/bugs169/pr309440/foobar/CrashAspectJCompiler.java
new file mode 100644 (file)
index 0000000..6baca78
--- /dev/null
@@ -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 (file)
index 0000000..6611c85
--- /dev/null
@@ -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 (file)
index 0000000..43807b0
Binary files /dev/null and b/tests/bugs169/pr309440/jsr305.jar differ
index 2a51db99a6653d7d9dea3f37a6b6465188df70aa..d6abf079600ad3e20b97b111bc2130eecd597cd6 100644 (file)
@@ -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");
        }
index 8a83d5bc4f6dcd4de62a5d71cf07285ce946dc10..c877cd92bd3e947a4b37d084e0b6716fa7c308fc 100644 (file)
      </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 -->