test/tools/javac/6304921/T6304921.out

Thu, 23 Oct 2008 18:29:11 +0100

author
mcimadamore
date
Thu, 23 Oct 2008 18:29:11 +0100
changeset 158
c6e3fc6dda61
parent 122
1a9276e7cb18
child 165
4f7b344a1ce0
permissions
-rw-r--r--

6557954: Inner class type parameters doesn't get substituted when checking type well-formedness
Summary: Validator.visitTypeApply should substitute all formal typevars with actual parameters
Reviewed-by: jjg

     1 T6304921.java:671/671/680: warning: [raw-type] found raw type: java.util.ArrayList
     2 missing type parameters for generic class java.util.ArrayList<E>
     3         List<Integer> list = new ArrayList();
     4                                  ^
     5 T6304921.java:667/667/682: warning: [unchecked] unchecked conversion
     6 found   : java.util.ArrayList
     7 required: java.util.List<java.lang.Integer>
     8         List<Integer> list = new ArrayList();
     9                              ^
    10 T6304921.java:445/445/453: warning: [fallthrough] possible fall-through into case
    11         default:
    12         ^
    13 T6304921.java:522/613/614: warning: [finally] finally clause cannot complete normally
    14         }
    15         ^
    16 T6304921.java:727/733/737: cannot find symbol
    17 symbol  : variable orr
    18 location: class java.lang.System
    19         System.orr.println("abc"); // name not found
    20               ^
    21 T6304921.java:812/816/822: operator + cannot be applied to int,boolean
    22         return 123 + true; // bad binary expression
    23                    ^
    24 2 errors
    25 4 warnings

mercurial