Lines 7675-7691
Link Here
|
7675 |
"}\n" |
7675 |
"}\n" |
7676 |
}, |
7676 |
}, |
7677 |
"----------\n" + |
7677 |
"----------\n" + |
7678 |
"1. WARNING in X.java (at line 4)\n" + |
7678 |
"1. WARNING in X.java (at line 3)\n" + |
|
|
7679 |
" X[] foo() {\n" + |
7680 |
" ^\n" + |
7681 |
"X is a raw type. References to generic type X<T> should be parameterized\n" + |
7682 |
"----------\n" + |
7683 |
"2. WARNING in X.java (at line 4)\n" + |
7679 |
" ArrayList<X> list = new ArrayList();\n" + |
7684 |
" ArrayList<X> list = new ArrayList();\n" + |
7680 |
" ^\n" + |
7685 |
" ^\n" + |
7681 |
"X is a raw type. References to generic type X<T> should be parameterized\n" + |
7686 |
"X is a raw type. References to generic type X<T> should be parameterized\n" + |
7682 |
"----------\n" + |
7687 |
"----------\n" + |
7683 |
"2. WARNING in X.java (at line 4)\n" + |
7688 |
"3. WARNING in X.java (at line 4)\n" + |
7684 |
" ArrayList<X> list = new ArrayList();\n" + |
7689 |
" ArrayList<X> list = new ArrayList();\n" + |
7685 |
" ^^^^^^^^^^^^^^^\n" + |
7690 |
" ^^^^^^^^^^^^^^^\n" + |
7686 |
"Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<X>\n" + |
7691 |
"Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<X>\n" + |
7687 |
"----------\n" + |
7692 |
"----------\n" + |
7688 |
"3. WARNING in X.java (at line 4)\n" + |
7693 |
"4. WARNING in X.java (at line 4)\n" + |
7689 |
" ArrayList<X> list = new ArrayList();\n" + |
7694 |
" ArrayList<X> list = new ArrayList();\n" + |
7690 |
" ^^^^^^^^^\n" + |
7695 |
" ^^^^^^^^^\n" + |
7691 |
"ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized\n" + |
7696 |
"ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized\n" + |
Lines 13570-13576
Link Here
|
13570 |
" ^^^^\n" + |
13575 |
" ^^^^\n" + |
13571 |
"Zork cannot be resolved to a type\n" + |
13576 |
"Zork cannot be resolved to a type\n" + |
13572 |
"----------\n" + |
13577 |
"----------\n" + |
13573 |
"2. WARNING in X.java (at line 6)\n" + |
13578 |
"2. WARNING in X.java (at line 5)\n" + |
|
|
13579 |
" Set[] sets = new Set[10];\n" + |
13580 |
" ^^^\n" + |
13581 |
"Set is a raw type. References to generic type Set<E> should be parameterized\n" + |
13582 |
"----------\n" + |
13583 |
"3. WARNING in X.java (at line 6)\n" + |
13574 |
" return sets;\n" + |
13584 |
" return sets;\n" + |
13575 |
" ^^^^\n" + |
13585 |
" ^^^^\n" + |
13576 |
"Type safety: The expression of type Set[] needs unchecked conversion to conform to Set<String>[]\n" + |
13586 |
"Type safety: The expression of type Set[] needs unchecked conversion to conform to Set<String>[]\n" + |
Lines 24592-24608
Link Here
|
24592 |
"}\n", |
24602 |
"}\n", |
24593 |
}, |
24603 |
}, |
24594 |
"----------\n" + |
24604 |
"----------\n" + |
24595 |
"1. WARNING in X.java (at line 7)\n" + |
24605 |
"1. WARNING in X.java (at line 6)\n" + |
|
|
24606 |
" Constructor[] constrs = X.class.getConstructors();\n" + |
24607 |
" ^^^^^^^^^^^\n" + |
24608 |
"Constructor is a raw type. References to generic type Constructor<T> should be parameterized\n" + |
24609 |
"----------\n" + |
24610 |
"2. WARNING in X.java (at line 7)\n" + |
24596 |
" for (Constructor constructor : constrs) {\n" + |
24611 |
" for (Constructor constructor : constrs) {\n" + |
24597 |
" ^^^^^^^^^^^\n" + |
24612 |
" ^^^^^^^^^^^\n" + |
24598 |
"Constructor is a raw type. References to generic type Constructor<T> should be parameterized\n" + |
24613 |
"Constructor is a raw type. References to generic type Constructor<T> should be parameterized\n" + |
24599 |
"----------\n" + |
24614 |
"----------\n" + |
24600 |
"2. WARNING in X.java (at line 8)\n" + |
24615 |
"3. WARNING in X.java (at line 8)\n" + |
24601 |
" final String message = constructor.getAnnotation(AnnClass).message();\n" + |
24616 |
" final String message = constructor.getAnnotation(AnnClass).message();\n" + |
24602 |
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + |
24617 |
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + |
24603 |
"Type safety: The method getAnnotation(Class) belongs to the raw type Constructor. References to generic type Constructor<T> should be parameterized\n" + |
24618 |
"Type safety: The method getAnnotation(Class) belongs to the raw type Constructor. References to generic type Constructor<T> should be parameterized\n" + |
24604 |
"----------\n" + |
24619 |
"----------\n" + |
24605 |
"3. ERROR in X.java (at line 8)\n" + |
24620 |
"4. ERROR in X.java (at line 8)\n" + |
24606 |
" final String message = constructor.getAnnotation(AnnClass).message();\n" + |
24621 |
" final String message = constructor.getAnnotation(AnnClass).message();\n" + |
24607 |
" ^^^^^^^\n" + |
24622 |
" ^^^^^^^\n" + |
24608 |
"The method message() is undefined for the type Annotation\n" + |
24623 |
"The method message() is undefined for the type Annotation\n" + |
Lines 25223-25234
Link Here
|
25223 |
" ^^^^^^^^^^^^^^^^^\n" + |
25238 |
" ^^^^^^^^^^^^^^^^^\n" + |
25224 |
"Cannot perform instanceof check against parameterized type List<? extends String>. Use instead its raw form List since generic type information will be erased at runtime\n" + |
25239 |
"Cannot perform instanceof check against parameterized type List<? extends String>. Use instead its raw form List since generic type information will be erased at runtime\n" + |
25225 |
"----------\n" + |
25240 |
"----------\n" + |
25226 |
"7. WARNING in X.java (at line 19)\n" + |
25241 |
"7. WARNING in X.java (at line 18)\n" + |
|
|
25242 |
" void foo(List[] ls) {\n" + |
25243 |
" ^^^^\n" + |
25244 |
"List is a raw type. References to generic type List<E> should be parameterized\n" + |
25245 |
"----------\n" + |
25246 |
"8. WARNING in X.java (at line 19)\n" + |
25227 |
" if (ls instanceof List<?>[]) {}\n" + |
25247 |
" if (ls instanceof List<?>[]) {}\n" + |
25228 |
" ^^^^^^^^^^^^^^^^^^^^^^^\n" + |
25248 |
" ^^^^^^^^^^^^^^^^^^^^^^^\n" + |
25229 |
"The expression of type List[] is already an instance of type List<?>\n" + |
25249 |
"The expression of type List[] is already an instance of type List<?>\n" + |
25230 |
"----------\n" + |
25250 |
"----------\n" + |
25231 |
"8. ERROR in X.java (at line 20)\n" + |
25251 |
"9. ERROR in X.java (at line 20)\n" + |
25232 |
" if (ls instanceof List<? extends String>[]) {}\n" + |
25252 |
" if (ls instanceof List<? extends String>[]) {}\n" + |
25233 |
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + |
25253 |
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + |
25234 |
"Cannot perform instanceof check against parameterized type List<? extends String>[]. Use instead its raw form List[] since generic type information will be erased at runtime\n" + |
25254 |
"Cannot perform instanceof check against parameterized type List<? extends String>[]. Use instead its raw form List[] since generic type information will be erased at runtime\n" + |
Lines 28500-28511
Link Here
|
28500 |
"}\n", |
28520 |
"}\n", |
28501 |
}, |
28521 |
}, |
28502 |
"----------\n" + |
28522 |
"----------\n" + |
28503 |
"1. ERROR in X.java (at line 5)\n" + |
28523 |
"1. WARNING in X.java (at line 4)\n" + |
|
|
28524 |
" void foo(List<? extends Collection<String>[]> l1, List<Collection[]> l2) {\n" + |
28525 |
" ^^^^^^^^^^\n" + |
28526 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
28527 |
"----------\n" + |
28528 |
"2. ERROR in X.java (at line 5)\n" + |
28504 |
" l1 = l2;\n" + |
28529 |
" l1 = l2;\n" + |
28505 |
" ^^\n" + |
28530 |
" ^^\n" + |
28506 |
"Type mismatch: cannot convert from List<Collection[]> to List<? extends Collection<String>[]>\n" + |
28531 |
"Type mismatch: cannot convert from List<Collection[]> to List<? extends Collection<String>[]>\n" + |
28507 |
"----------\n" + |
28532 |
"----------\n" + |
28508 |
"2. ERROR in X.java (at line 6)\n" + |
28533 |
"3. ERROR in X.java (at line 6)\n" + |
28509 |
" l2 = l1;\n" + |
28534 |
" l2 = l1;\n" + |
28510 |
" ^^\n" + |
28535 |
" ^^\n" + |
28511 |
"Type mismatch: cannot convert from List<capture#2-of ? extends Collection<String>[]> to List<Collection[]>\n" + |
28536 |
"Type mismatch: cannot convert from List<capture#2-of ? extends Collection<String>[]> to List<Collection[]>\n" + |
Lines 28539-28580
Link Here
|
28539 |
"}\n", |
28564 |
"}\n", |
28540 |
}, |
28565 |
}, |
28541 |
"----------\n" + |
28566 |
"----------\n" + |
28542 |
"1. ERROR in X.java (at line 8)\n" + |
28567 |
"1. WARNING in X.java (at line 4)\n" + |
|
|
28568 |
" List<Collection[]> lc1 = null;\n" + |
28569 |
" ^^^^^^^^^^\n" + |
28570 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
28571 |
"----------\n" + |
28572 |
"2. WARNING in X.java (at line 7)\n" + |
28573 |
" List<? extends Collection[]> lc4 = null;\n" + |
28574 |
" ^^^^^^^^^^\n" + |
28575 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
28576 |
"----------\n" + |
28577 |
"3. ERROR in X.java (at line 8)\n" + |
28543 |
" lc1 = lc2; //1 ko\n" + |
28578 |
" lc1 = lc2; //1 ko\n" + |
28544 |
" ^^^\n" + |
28579 |
" ^^^\n" + |
28545 |
"Type mismatch: cannot convert from List<Collection<?>[]> to List<Collection[]>\n" + |
28580 |
"Type mismatch: cannot convert from List<Collection<?>[]> to List<Collection[]>\n" + |
28546 |
"----------\n" + |
28581 |
"----------\n" + |
28547 |
"2. ERROR in X.java (at line 9)\n" + |
28582 |
"4. ERROR in X.java (at line 9)\n" + |
28548 |
" lc1 = lc3; //2 ko\n" + |
28583 |
" lc1 = lc3; //2 ko\n" + |
28549 |
" ^^^\n" + |
28584 |
" ^^^\n" + |
28550 |
"Type mismatch: cannot convert from List<capture#1-of ? extends Collection<?>[]> to List<Collection[]>\n" + |
28585 |
"Type mismatch: cannot convert from List<capture#1-of ? extends Collection<?>[]> to List<Collection[]>\n" + |
28551 |
"----------\n" + |
28586 |
"----------\n" + |
28552 |
"3. ERROR in X.java (at line 10)\n" + |
28587 |
"5. ERROR in X.java (at line 10)\n" + |
28553 |
" lc1 = lc4; //3 ko\n" + |
28588 |
" lc1 = lc4; //3 ko\n" + |
28554 |
" ^^^\n" + |
28589 |
" ^^^\n" + |
28555 |
"Type mismatch: cannot convert from List<capture#2-of ? extends Collection[]> to List<Collection[]>\n" + |
28590 |
"Type mismatch: cannot convert from List<capture#2-of ? extends Collection[]> to List<Collection[]>\n" + |
28556 |
"----------\n" + |
28591 |
"----------\n" + |
28557 |
"4. ERROR in X.java (at line 11)\n" + |
28592 |
"6. ERROR in X.java (at line 11)\n" + |
28558 |
" lc2 = lc1; //4 ko\n" + |
28593 |
" lc2 = lc1; //4 ko\n" + |
28559 |
" ^^^\n" + |
28594 |
" ^^^\n" + |
28560 |
"Type mismatch: cannot convert from List<Collection[]> to List<Collection<?>[]>\n" + |
28595 |
"Type mismatch: cannot convert from List<Collection[]> to List<Collection<?>[]>\n" + |
28561 |
"----------\n" + |
28596 |
"----------\n" + |
28562 |
"5. ERROR in X.java (at line 12)\n" + |
28597 |
"7. ERROR in X.java (at line 12)\n" + |
28563 |
" lc2 = lc3; //5 ko\n" + |
28598 |
" lc2 = lc3; //5 ko\n" + |
28564 |
" ^^^\n" + |
28599 |
" ^^^\n" + |
28565 |
"Type mismatch: cannot convert from List<capture#3-of ? extends Collection<?>[]> to List<Collection<?>[]>\n" + |
28600 |
"Type mismatch: cannot convert from List<capture#3-of ? extends Collection<?>[]> to List<Collection<?>[]>\n" + |
28566 |
"----------\n" + |
28601 |
"----------\n" + |
28567 |
"6. ERROR in X.java (at line 13)\n" + |
28602 |
"8. ERROR in X.java (at line 13)\n" + |
28568 |
" lc2 = lc4; //6 ko\n" + |
28603 |
" lc2 = lc4; //6 ko\n" + |
28569 |
" ^^^\n" + |
28604 |
" ^^^\n" + |
28570 |
"Type mismatch: cannot convert from List<capture#4-of ? extends Collection[]> to List<Collection<?>[]>\n" + |
28605 |
"Type mismatch: cannot convert from List<capture#4-of ? extends Collection[]> to List<Collection<?>[]>\n" + |
28571 |
"----------\n" + |
28606 |
"----------\n" + |
28572 |
"7. ERROR in X.java (at line 14)\n" + |
28607 |
"9. ERROR in X.java (at line 14)\n" + |
28573 |
" lc3 = lc1; //7 ko\n" + |
28608 |
" lc3 = lc1; //7 ko\n" + |
28574 |
" ^^^\n" + |
28609 |
" ^^^\n" + |
28575 |
"Type mismatch: cannot convert from List<Collection[]> to List<? extends Collection<?>[]>\n" + |
28610 |
"Type mismatch: cannot convert from List<Collection[]> to List<? extends Collection<?>[]>\n" + |
28576 |
"----------\n" + |
28611 |
"----------\n" + |
28577 |
"8. ERROR in X.java (at line 16)\n" + |
28612 |
"10. ERROR in X.java (at line 16)\n" + |
28578 |
" lc3 = lc4; //9 ko\n" + |
28613 |
" lc3 = lc4; //9 ko\n" + |
28579 |
" ^^^\n" + |
28614 |
" ^^^\n" + |
28580 |
"Type mismatch: cannot convert from List<capture#8-of ? extends Collection[]> to List<? extends Collection<?>[]>\n" + |
28615 |
"Type mismatch: cannot convert from List<capture#8-of ? extends Collection[]> to List<? extends Collection<?>[]>\n" + |
Lines 28608-28649
Link Here
|
28608 |
"}\n", |
28643 |
"}\n", |
28609 |
}, |
28644 |
}, |
28610 |
"----------\n" + |
28645 |
"----------\n" + |
28611 |
"1. ERROR in X.java (at line 8)\n" + |
28646 |
"1. WARNING in X.java (at line 4)\n" + |
|
|
28647 |
" List<Collection[]> lc1 = null;\n" + |
28648 |
" ^^^^^^^^^^\n" + |
28649 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
28650 |
"----------\n" + |
28651 |
"2. WARNING in X.java (at line 7)\n" + |
28652 |
" List<? super Collection[]> lc4 = null;\n" + |
28653 |
" ^^^^^^^^^^\n" + |
28654 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
28655 |
"----------\n" + |
28656 |
"3. ERROR in X.java (at line 8)\n" + |
28612 |
" lc1 = lc2; //1 ko\n" + |
28657 |
" lc1 = lc2; //1 ko\n" + |
28613 |
" ^^^\n" + |
28658 |
" ^^^\n" + |
28614 |
"Type mismatch: cannot convert from List<Collection<?>[]> to List<Collection[]>\n" + |
28659 |
"Type mismatch: cannot convert from List<Collection<?>[]> to List<Collection[]>\n" + |
28615 |
"----------\n" + |
28660 |
"----------\n" + |
28616 |
"2. ERROR in X.java (at line 9)\n" + |
28661 |
"4. ERROR in X.java (at line 9)\n" + |
28617 |
" lc1 = lc3; //2 ko\n" + |
28662 |
" lc1 = lc3; //2 ko\n" + |
28618 |
" ^^^\n" + |
28663 |
" ^^^\n" + |
28619 |
"Type mismatch: cannot convert from List<capture#1-of ? super Collection<?>[]> to List<Collection[]>\n" + |
28664 |
"Type mismatch: cannot convert from List<capture#1-of ? super Collection<?>[]> to List<Collection[]>\n" + |
28620 |
"----------\n" + |
28665 |
"----------\n" + |
28621 |
"3. ERROR in X.java (at line 10)\n" + |
28666 |
"5. ERROR in X.java (at line 10)\n" + |
28622 |
" lc1 = lc4; //3 ko\n" + |
28667 |
" lc1 = lc4; //3 ko\n" + |
28623 |
" ^^^\n" + |
28668 |
" ^^^\n" + |
28624 |
"Type mismatch: cannot convert from List<capture#2-of ? super Collection[]> to List<Collection[]>\n" + |
28669 |
"Type mismatch: cannot convert from List<capture#2-of ? super Collection[]> to List<Collection[]>\n" + |
28625 |
"----------\n" + |
28670 |
"----------\n" + |
28626 |
"4. ERROR in X.java (at line 11)\n" + |
28671 |
"6. ERROR in X.java (at line 11)\n" + |
28627 |
" lc2 = lc1; //4 ko\n" + |
28672 |
" lc2 = lc1; //4 ko\n" + |
28628 |
" ^^^\n" + |
28673 |
" ^^^\n" + |
28629 |
"Type mismatch: cannot convert from List<Collection[]> to List<Collection<?>[]>\n" + |
28674 |
"Type mismatch: cannot convert from List<Collection[]> to List<Collection<?>[]>\n" + |
28630 |
"----------\n" + |
28675 |
"----------\n" + |
28631 |
"5. ERROR in X.java (at line 12)\n" + |
28676 |
"7. ERROR in X.java (at line 12)\n" + |
28632 |
" lc2 = lc3; //5 ko\n" + |
28677 |
" lc2 = lc3; //5 ko\n" + |
28633 |
" ^^^\n" + |
28678 |
" ^^^\n" + |
28634 |
"Type mismatch: cannot convert from List<capture#3-of ? super Collection<?>[]> to List<Collection<?>[]>\n" + |
28679 |
"Type mismatch: cannot convert from List<capture#3-of ? super Collection<?>[]> to List<Collection<?>[]>\n" + |
28635 |
"----------\n" + |
28680 |
"----------\n" + |
28636 |
"6. ERROR in X.java (at line 13)\n" + |
28681 |
"8. ERROR in X.java (at line 13)\n" + |
28637 |
" lc2 = lc4; //6 ko\n" + |
28682 |
" lc2 = lc4; //6 ko\n" + |
28638 |
" ^^^\n" + |
28683 |
" ^^^\n" + |
28639 |
"Type mismatch: cannot convert from List<capture#4-of ? super Collection[]> to List<Collection<?>[]>\n" + |
28684 |
"Type mismatch: cannot convert from List<capture#4-of ? super Collection[]> to List<Collection<?>[]>\n" + |
28640 |
"----------\n" + |
28685 |
"----------\n" + |
28641 |
"7. ERROR in X.java (at line 18)\n" + |
28686 |
"9. ERROR in X.java (at line 18)\n" + |
28642 |
" lc4 = lc2; //11 ko\n" + |
28687 |
" lc4 = lc2; //11 ko\n" + |
28643 |
" ^^^\n" + |
28688 |
" ^^^\n" + |
28644 |
"Type mismatch: cannot convert from List<Collection<?>[]> to List<? super Collection[]>\n" + |
28689 |
"Type mismatch: cannot convert from List<Collection<?>[]> to List<? super Collection[]>\n" + |
28645 |
"----------\n" + |
28690 |
"----------\n" + |
28646 |
"8. ERROR in X.java (at line 19)\n" + |
28691 |
"10. ERROR in X.java (at line 19)\n" + |
28647 |
" lc4 = lc3; //12 ko \n" + |
28692 |
" lc4 = lc3; //12 ko \n" + |
28648 |
" ^^^\n" + |
28693 |
" ^^^\n" + |
28649 |
"Type mismatch: cannot convert from List<capture#12-of ? super Collection<?>[]> to List<? super Collection[]>\n" + |
28694 |
"Type mismatch: cannot convert from List<capture#12-of ? super Collection<?>[]> to List<? super Collection[]>\n" + |
Lines 32785-32790
Link Here
|
32785 |
" x.bar2(\"\");\n" + |
32830 |
" x.bar2(\"\");\n" + |
32786 |
" ^^^^\n" + |
32831 |
" ^^^^\n" + |
32787 |
"The method bar2(Class...) in the type X is not applicable for the arguments (String)\n" + |
32832 |
"The method bar2(Class...) in the type X is not applicable for the arguments (String)\n" + |
|
|
32833 |
"----------\n" + |
32834 |
"5. WARNING in X.java (at line 9)\n" + |
32835 |
" void bar2(Class... classes) {}\n" + |
32836 |
" ^^^^^\n" + |
32837 |
"Class is a raw type. References to generic type Class<T> should be parameterized\n" + |
32788 |
"----------\n"); |
32838 |
"----------\n"); |
32789 |
} |
32839 |
} |
32790 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=158519 |
32840 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=158519 |
Lines 33370-33373
Link Here
|
33370 |
assertTrue(false); |
33420 |
assertTrue(false); |
33371 |
} |
33421 |
} |
33372 |
} |
33422 |
} |
|
|
33423 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=159245 |
33424 |
public void test1041() { |
33425 |
this.runNegativeTest( |
33426 |
new String[] { |
33427 |
"p/X.java", |
33428 |
"package p;\n" + |
33429 |
"\n" + |
33430 |
"public class X<T> {\n" + |
33431 |
" {\n" + |
33432 |
" X rawx = null;\n" + |
33433 |
" X[] rawxs = { rawx };\n" + |
33434 |
" System.out.println(rawxs.length);\n" + |
33435 |
" }\n" + |
33436 |
" {\n" + |
33437 |
" p.X rawx = null;\n" + |
33438 |
" p.X[] rawxs = { rawx };\n" + |
33439 |
" System.out.println(rawxs.length);\n" + |
33440 |
" }\n" + |
33441 |
" Zork z;\n" + |
33442 |
"}", // ================= |
33443 |
}, |
33444 |
"----------\n" + |
33445 |
"1. WARNING in p\\X.java (at line 5)\n" + |
33446 |
" X rawx = null;\n" + |
33447 |
" ^\n" + |
33448 |
"X is a raw type. References to generic type X<T> should be parameterized\n" + |
33449 |
"----------\n" + |
33450 |
"2. WARNING in p\\X.java (at line 6)\n" + |
33451 |
" X[] rawxs = { rawx };\n" + |
33452 |
" ^\n" + |
33453 |
"X is a raw type. References to generic type X<T> should be parameterized\n" + |
33454 |
"----------\n" + |
33455 |
"3. WARNING in p\\X.java (at line 10)\n" + |
33456 |
" p.X rawx = null;\n" + |
33457 |
" ^^^\n" + |
33458 |
"X is a raw type. References to generic type X<T> should be parameterized\n" + |
33459 |
"----------\n" + |
33460 |
"4. WARNING in p\\X.java (at line 11)\n" + |
33461 |
" p.X[] rawxs = { rawx };\n" + |
33462 |
" ^^^^^\n" + |
33463 |
"X is a raw type. References to generic type X<T> should be parameterized\n" + |
33464 |
"----------\n" + |
33465 |
"5. ERROR in p\\X.java (at line 14)\n" + |
33466 |
" Zork z;\n" + |
33467 |
" ^^^^\n" + |
33468 |
"Zork cannot be resolved to a type\n" + |
33469 |
"----------\n"); |
33470 |
} |
33373 |
} |
33471 |
} |