6683438: Bad regression test for CR 6611449

Wed, 09 Apr 2008 15:04:35 +0100

author
mcimadamore
date
Wed, 09 Apr 2008 15:04:35 +0100
changeset 29
6522ea413d23
parent 28
e7bf2e39b8fe
child 30
a1d1f335633f

6683438: Bad regression test for CR 6611449
Summary: The regression test for CR 6611449 contains some inconstistencies
Reviewed-by: jjg

test/tools/javac/generics/inference/6611449/T6611449.java file | annotate | diff | comparison | revisions
test/tools/javac/generics/inference/6611449/T6611449.out file | annotate | diff | comparison | revisions
     1.1 --- a/test/tools/javac/generics/inference/6611449/T6611449.java	Wed Apr 09 14:57:37 2008 +0100
     1.2 +++ b/test/tools/javac/generics/inference/6611449/T6611449.java	Wed Apr 09 15:04:35 2008 +0100
     1.3 @@ -29,18 +29,18 @@
     1.4   */
     1.5  public class T6611449<S> {
     1.6  
     1.7 -    T6611449() {this(1);}
     1.8 -
     1.9 -    <T extends S> T6611449(T t1) {this(t1, 1);}
    1.10 +    <T extends S> T6611449(T t1) {}
    1.11  
    1.12      <T extends S> T6611449(T t1, T t2) {}
    1.13  
    1.14 -    <T extends S> void m(T t1) {}
    1.15 +    <T extends S> void m1(T t1) {}
    1.16  
    1.17 -    <T extends S> void m(T t1, T t2) {}
    1.18 +    <T extends S> void m2(T t1, T t2) {}
    1.19  
    1.20      void test() {
    1.21 +        new T6611449<S>(1);
    1.22 +        new T6611449<S>(1, 1); //internal error: lub is erroneously applied to primitive types
    1.23          m1(1);
    1.24 -        m2(1, 1);
    1.25 +        m2(1, 1); //internal error: lub is erroneously applied to primitive types
    1.26      }
    1.27  }
     2.1 --- a/test/tools/javac/generics/inference/6611449/T6611449.out	Wed Apr 09 14:57:37 2008 +0100
     2.2 +++ b/test/tools/javac/generics/inference/6611449/T6611449.out	Wed Apr 09 15:04:35 2008 +0100
     2.3 @@ -1,5 +1,5 @@
     2.4 -T6611449.java:32:17: compiler.err.cant.resolve.location: (- compiler.misc.kindname.constructor), T6611449, (int), , (- compiler.misc.kindname.class), T6611449<S>
     2.5 -T6611449.java:34:35: compiler.err.cant.resolve.location: (- compiler.misc.kindname.constructor), T6611449, (T,int), , (- compiler.misc.kindname.class), T6611449<S>
     2.6 -T6611449.java:43:9: compiler.err.cant.resolve.location: (- compiler.misc.kindname.method), m1, (int), , (- compiler.misc.kindname.class), T6611449<S>
     2.7 -T6611449.java:44:9: compiler.err.cant.resolve.location: (- compiler.misc.kindname.method), m2, (int,int), , (- compiler.misc.kindname.class), T6611449<S>
     2.8 +T6611449.java:41:9: compiler.err.cant.resolve.location: (- compiler.misc.kindname.constructor), T6611449, (int), , (- compiler.misc.kindname.class), T6611449<S>
     2.9 +T6611449.java:42:9: compiler.err.cant.resolve.location: (- compiler.misc.kindname.constructor), T6611449, (int,int), , (- compiler.misc.kindname.class), T6611449<S>
    2.10 +T6611449.java:43:9: compiler.err.cant.apply.symbol: <T>m1(T), T6611449<S>, , int, null
    2.11 +T6611449.java:44:9: compiler.err.cant.apply.symbol: <T>m2(T,T), T6611449<S>, , int,int, null
    2.12  4 errors

mercurial