]> source.dussan.org Git - aspectj.git/commitdiff
genericitds:
authoraclement <aclement>
Mon, 8 Aug 2005 09:06:58 +0000 (09:06 +0000)
committeraclement <aclement>
Mon, 8 Aug 2005 09:06:58 +0000 (09:06 +0000)
tests/java5/generics/itds/Parse6.aj [deleted file]
tests/java5/generics/itds/Parse6.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java
tests/src/org/aspectj/systemtest/ajc150/ajc150.xml

diff --git a/tests/java5/generics/itds/Parse6.aj b/tests/java5/generics/itds/Parse6.aj
deleted file mode 100644 (file)
index d9f93b2..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-class Base<N extends Number> {
-
-  public List<N> f1;
-
-  public void m1(List<N> ns) {}
-
-}
-
-aspect X {
-
-  public List<Z> Base<Z>.f2;
-
-  public void Base<Z>.m1(List<Z> ns) {}
-
-}
-
diff --git a/tests/java5/generics/itds/Parse6.java b/tests/java5/generics/itds/Parse6.java
new file mode 100644 (file)
index 0000000..d9f93b2
--- /dev/null
@@ -0,0 +1,16 @@
+class Base<N extends Number> {
+
+  public List<N> f1;
+
+  public void m1(List<N> ns) {}
+
+}
+
+aspect X {
+
+  public List<Z> Base<Z>.f2;
+
+  public void Base<Z>.m1(List<Z> ns) {}
+
+}
+
index bedf1d55d019bf9dcf1da1bdc7370fc156789ff2..53a7d5f36e9524f6e16d338f89c1e837d09d550e 100644 (file)
@@ -109,8 +109,7 @@ public class GenericsTests extends XMLBasedAjcTestCase {
         * Generics test plan for ITDs.
         * 
         * think about:
-        * - source/binary weaving
-        * - visibility default/private/public
+        * - 'visibility' default/private/public
         * - static/nonstatic
         * - parameterized ITDs (methods/ctors/fields)
         * - ITD target: interface/class/aspect
@@ -126,6 +125,9 @@ public class GenericsTests extends XMLBasedAjcTestCase {
         * - wildcards '?' 'extends' 'super' '&'
         * - do type variables assigned to members need to persist across serialization
         * - recursive type variable definitions eg. <R extends Comparable<? super R>>
+        * - super/extends with parameterized types <? extends List<String>>
+        * - source/binary weaving
+        * - multiple ITDs defined in one type that reuse type variable letters, specifying different bounds
         */
        
        public static Test suite() {
@@ -182,28 +184,18 @@ public class GenericsTests extends XMLBasedAjcTestCase {
        }
        
        // Developers notebook
-       // ITD of generic members
        
-       public void testItdNonStaticMethod() {
-               runTest("Parsing generic ITDs - 1");
-       }
-       public void testItdStaticMethod() {
-               runTest("Parsing generic ITDs - 2");
-       }
-       public void testItdCtor() {
-               runTest("Parsing generic ITDs - 3");
-       }
-       public void testItdComplexMethod() {
-               runTest("Parsing generic ITDs - 4");
-       }
-               
-       public void testItdNonStaticMember() {
-               runTest("itd of non static member");
-       }
+       // parsing of generic ITD members
        
-       public void testItdStaticMember() {
-               runTest("itd of static member");
-       }
+       public void testParseItdNonStaticMethod() {runTest("Parsing generic ITDs - 1");}
+       public void testParseItdStaticMethod()    {runTest("Parsing generic ITDs - 2");}
+       public void testParseItdCtor()            {runTest("Parsing generic ITDs - 3");}
+       public void testParseItdComplexMethod()   {runTest("Parsing generic ITDs - 4");}
+//     public void testParseItdSharingVars1()    {runTest("Parsing generic ITDs - 5");}
+//     public void testParseItdSharingVars2()    {runTest("Parsing generic ITDs - 6");}
+
+       public void testItdNonStaticMember()      {runTest("itd of non static member");}
+       public void testItdStaticMember()         {runTest("itd of static member");}
 
        public void testStaticGenericMethodITD() {
                runTest("static generic method itd");
@@ -238,6 +230,20 @@ public class GenericsTests extends XMLBasedAjcTestCase {
        public void testGenericCtorITD2() {runTest("generic ctor itd - 2");} // <T> new(List<T>,List<? extends T>)
        public void testGenericCtorITD3() {runTest("generic ctor itd - 3");} // <T> new(List<T>,Comparator<? super T>)
 
+       
+/*     
+    public void testMultipleGenericITDsInOneFile() { runTest("multiple generic itds in one file");}
+       
+       // ITDs of differing visibilities
+       public void testPublicITDs()       {runTest("public itds");}
+       public void testPublicITDsErrors() {runTest("public itds with errors");}
+       public void testPrivateITDs()      {runTest("private itds");}
+       public void testPackageITDs()      {runTest("package itds");}
+       
+       // ITDs that share a type variable with the target generic type
+       public void testMethodITDsSharingTvar() {runTest("method itd sharing type variable with generic type");}
+       public void testFieldITDsSharingTvar()  {runTest("field itd sharing type variable with generic type");}
+*/
 //     public void testGenericITFSharingTypeVariable() {
 //             runTest("generic intertype field declaration, sharing type variable");
 //     }
index affd350e821f20881488a8e43e2cd828cdc4a9f1..8f73dbdf153678e4c48f0af1ffb12ce69cee437c 100644 (file)
    <ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 4">
      <compile files="Parse4.java" options="-1.5"/>
    </ajc-test>
+
+   <ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 5">
+     <compile files="Parse5.java" options="-1.5"/>
+   </ajc-test>
    
    <ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 6">
      <compile files="Parse6.java" options="-1.5"/>