]> source.dussan.org Git - aspectj.git/commitdiff
336136
authoraclement <aclement>
Thu, 3 Feb 2011 00:03:02 +0000 (00:03 +0000)
committeraclement <aclement>
Thu, 3 Feb 2011 00:03:02 +0000 (00:03 +0000)
tests/bugs1611/pr336136/Country_Roo_Op4j.java [new file with mode: 0644]
tests/bugs1611/pr336136/Country_Roo_Op4j2.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc1611/Ajc1611Tests.java
tests/src/org/aspectj/systemtest/ajc1611/ajc1611.xml

diff --git a/tests/bugs1611/pr336136/Country_Roo_Op4j.java b/tests/bugs1611/pr336136/Country_Roo_Op4j.java
new file mode 100644 (file)
index 0000000..57bd698
--- /dev/null
@@ -0,0 +1,13 @@
+import com.foo.op4j.Country;
+import java.lang.Object;
+import org.javaruntype.type.Types;
+import org.op4j.functions.Function;
+import org.op4j.functions.Get;
+
+privileged aspect Country_Roo_Op4j {
+
+   public static class Country.Keys {
+
+       public static final Function COUNTRY = null;
+   }
+}
diff --git a/tests/bugs1611/pr336136/Country_Roo_Op4j2.java b/tests/bugs1611/pr336136/Country_Roo_Op4j2.java
new file mode 100644 (file)
index 0000000..047f4b5
--- /dev/null
@@ -0,0 +1,13 @@
+import com.foo.op4j.Country;
+import java.lang.Object;
+import org.javaruntype.type.Types;
+import org.op4j.functions.Function;
+import org.op4j.functions.Get;
+
+privileged aspect Country_Roo_Op4j2 {
+
+   public static class Country.Keys {
+
+       public static final Function<Object, Country> COUNTRY = Get.attrOf(Types.forClass(Country.class),"country");
+   }
+}
index 4929b6cdd05c0ef743c864c57fb9fb0686626b4e..064220b4672762324ecffd79d2659621f0cd9db0 100644 (file)
@@ -21,6 +21,14 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
  */
 public class Ajc1611Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
 
+       public void testITIT_336136() {
+               runTest("itit");
+       }
+
+       public void testITIT_336136_2() {
+               runTest("itit - 2");
+       }
+
        public void testDeserialization_335682() {
                runTest("pr335682");
        }
index a40d87eeda8ff792ab75401a094b28f0f0c769e9..97c68923fd922d6a54e705c4387d3aa4bfa40049 100644 (file)
@@ -2,6 +2,35 @@
 
 <suite>
 
+  <ajc-test dir="bugs1611/pr336136" title="itit">
+    <compile files="Country_Roo_Op4j.java">
+    <message kind="error" text="The import com.foo cannot be resolved" line="1"/>
+    <message kind="error" text="The import org.javaruntype cannot be resolved" line="3"/>
+    <message kind="error" text="The import org.op4j cannot be resolved" line="4"/>
+    <message kind="error" text="The import org.op4j cannot be resolved" line="5"/>
+    <message kind="error" text="Country cannot be resolved to a type" line="9"/>
+    <message kind="error" text="Function cannot be resolved to a type" line="11"/>
+    <message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j$Keys"/>
+    </compile>"
+  </ajc-test>
+  
+  
+  <ajc-test dir="bugs1611/pr336136" title="itit - 2">
+    <compile files="Country_Roo_Op4j2.java" options="-1.5">
+    <message kind="error" text="The import com.foo cannot be resolved" line="1"/>
+    <message kind="error" text="The import org.javaruntype cannot be resolved" line="3"/>
+    <message kind="error" text="The import org.op4j cannot be resolved" line="4"/>
+    <message kind="error" text="The import org.op4j cannot be resolved" line="5"/>
+    <message kind="error" text="Country cannot be resolved to a type" line="9"/>
+    <message kind="error" text="Country cannot be resolved to a type" line="11"/>
+    <message kind="error" text="Function cannot be resolved to a type" line="11"/>
+    <message kind="error" text="Get cannot be resolved" line="11"/>
+    <message kind="error" text="Types cannot be resolved" line="11"/>
+    <message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j2$Keys"/>
+    </compile>"
+  </ajc-test>
+  
+
   <ajc-test dir="bugs1611/pr335682" title="pr335682">
     <compile inpath="foo.jar" outjar="bar.jar"/>
   </ajc-test>