Lines 3382-3390
Link Here
|
3382 |
"1. ERROR in X.java (at line 6)\n" + |
3382 |
"1. ERROR in X.java (at line 6)\n" + |
3383 |
" @Override T id(T x) { return x; }\n" + |
3383 |
" @Override T id(T x) { return x; }\n" + |
3384 |
" ^^^^^^^\n" + |
3384 |
" ^^^^^^^\n" + |
|
|
3385 |
"Method id(T) has the same erasure id(A) as another method in type Y<T>\n" + |
3386 |
"----------\n" + |
3387 |
"2. ERROR in X.java (at line 6)\n" + |
3388 |
" @Override T id(T x) { return x; }\n" + |
3389 |
" ^^^^^^^\n" + |
3385 |
"Name clash: The method id(T) of type Y<T> has the same erasure as id(A) of type X<T> but does not override it\n" + |
3390 |
"Name clash: The method id(T) of type Y<T> has the same erasure as id(A) of type X<T> but does not override it\n" + |
3386 |
"----------\n" + |
3391 |
"----------\n" + |
3387 |
"2. ERROR in X.java (at line 7)\n" + |
3392 |
"3. ERROR in X.java (at line 7)\n" + |
3388 |
" @Override A id(A x) { return x; }\n" + |
3393 |
" @Override A id(A x) { return x; }\n" + |
3389 |
" ^^^^^^^\n" + |
3394 |
" ^^^^^^^\n" + |
3390 |
"Method id(A) has the same erasure id(A) as another method in type Y<T>\n" + |
3395 |
"Method id(A) has the same erasure id(A) as another method in type Y<T>\n" + |
Lines 3495-3511
Link Here
|
3495 |
"class Z {}" |
3500 |
"class Z {}" |
3496 |
}, |
3501 |
}, |
3497 |
"----------\n" + |
3502 |
"----------\n" + |
3498 |
"1. ERROR in X.java (at line 4)\n" + |
3503 |
"1. ERROR in X.java (at line 3)\n" + |
|
|
3504 |
" Y foo(Object o) { return null; } // duplicate\n" + |
3505 |
" ^^^^^^^^^^^^^\n" + |
3506 |
"Duplicate method foo(Object) in type X.C1\n" + |
3507 |
"----------\n" + |
3508 |
"2. ERROR in X.java (at line 4)\n" + |
3499 |
" Z foo(Object o) { return null; } // duplicate\n" + |
3509 |
" Z foo(Object o) { return null; } // duplicate\n" + |
3500 |
" ^^^^^^^^^^^^^\n" + |
3510 |
" ^^^^^^^^^^^^^\n" + |
3501 |
"Duplicate method foo(Object) in type X.C1\n" + |
3511 |
"Duplicate method foo(Object) in type X.C1\n" + |
3502 |
"----------\n" + |
3512 |
"----------\n" + |
3503 |
"2. ERROR in X.java (at line 12)\n" + |
3513 |
"3. ERROR in X.java (at line 11)\n" + |
|
|
3514 |
" A<Y> foo(Object o) { return null; } // duplicate\n" + |
3515 |
" ^^^^^^^^^^^^^\n" + |
3516 |
"Duplicate method foo(Object) in type X.C3\n" + |
3517 |
"----------\n" + |
3518 |
"4. ERROR in X.java (at line 12)\n" + |
3504 |
" A<Z> foo(Object o) { return null; } // duplicate\n" + |
3519 |
" A<Z> foo(Object o) { return null; } // duplicate\n" + |
3505 |
" ^^^^^^^^^^^^^\n" + |
3520 |
" ^^^^^^^^^^^^^\n" + |
3506 |
"Duplicate method foo(Object) in type X.C3\n" + |
3521 |
"Duplicate method foo(Object) in type X.C3\n" + |
3507 |
"----------\n" + |
3522 |
"----------\n" + |
3508 |
"3. ERROR in X.java (at line 16)\n" + |
3523 |
"5. ERROR in X.java (at line 15)\n" + |
|
|
3524 |
" Y foo(Object o) { return null; } // duplicate\n" + |
3525 |
" ^^^^^^^^^^^^^\n" + |
3526 |
"Duplicate method foo(Object) in type X.C4\n" + |
3527 |
"----------\n" + |
3528 |
"6. ERROR in X.java (at line 16)\n" + |
3509 |
" <T extends Z> T foo(Object o) { return null; } // duplicate\n" + |
3529 |
" <T extends Z> T foo(Object o) { return null; } // duplicate\n" + |
3510 |
" ^^^^^^^^^^^^^\n" + |
3530 |
" ^^^^^^^^^^^^^\n" + |
3511 |
"Duplicate method foo(Object) in type X.C4\n" + |
3531 |
"Duplicate method foo(Object) in type X.C4\n" + |
Lines 3535-3541
Link Here
|
3535 |
"class Z {}" |
3555 |
"class Z {}" |
3536 |
}, |
3556 |
}, |
3537 |
"----------\n" + |
3557 |
"----------\n" + |
3538 |
"1. ERROR in X.java (at line 4)\n" + |
3558 |
"1. ERROR in X.java (at line 3)\n" + |
|
|
3559 |
" A<Y> foo(A<Y> o) { return null; } // duplicate\n" + |
3560 |
" ^^^^^^^^^^^\n" + |
3561 |
"Method foo(A<Y>) has the same erasure foo(A<T>) as another method in type X.C5\n" + |
3562 |
"----------\n" + |
3563 |
"2. ERROR in X.java (at line 4)\n" + |
3539 |
" A<Z> foo(A<Z> o) { return null; } // duplicate\n" + |
3564 |
" A<Z> foo(A<Z> o) { return null; } // duplicate\n" + |
3540 |
" ^^^^^^^^^^^\n" + |
3565 |
" ^^^^^^^^^^^\n" + |
3541 |
"Method foo(A<Z>) has the same erasure foo(A<T>) as another method in type X.C5\n" + |
3566 |
"Method foo(A<Z>) has the same erasure foo(A<T>) as another method in type X.C5\n" + |
Lines 3594-3600
Link Here
|
3594 |
"class B {}\n" |
3619 |
"class B {}\n" |
3595 |
}, |
3620 |
}, |
3596 |
"----------\n" + |
3621 |
"----------\n" + |
3597 |
"1. ERROR in X.java (at line 3)\n" + |
3622 |
"1. ERROR in X.java (at line 2)\n" + |
|
|
3623 |
" <N extends B> N a(A<String> s) { return null; }\n" + |
3624 |
" ^^^^^^^^^^^^^^\n" + |
3625 |
"Method a(A<String>) has the same erasure a(A<T>) as another method in type X\n" + |
3626 |
"----------\n" + |
3627 |
"2. ERROR in X.java (at line 3)\n" + |
3598 |
" <N> B a(A<Number> n) { return null; }\n" + |
3628 |
" <N> B a(A<Number> n) { return null; }\n" + |
3599 |
" ^^^^^^^^^^^^^^\n" + |
3629 |
" ^^^^^^^^^^^^^^\n" + |
3600 |
"Method a(A<Number>) has the same erasure a(A<T>) as another method in type X\n" + |
3630 |
"Method a(A<Number>) has the same erasure a(A<T>) as another method in type X\n" + |
Lines 3615-3621
Link Here
|
3615 |
"class B {}\n" |
3645 |
"class B {}\n" |
3616 |
}, |
3646 |
}, |
3617 |
"----------\n" + |
3647 |
"----------\n" + |
3618 |
"1. ERROR in X.java (at line 3)\n" + |
3648 |
"1. ERROR in X.java (at line 2)\n" + |
|
|
3649 |
" <N extends B> N b(A<String> s) { return null; }\n" + |
3650 |
" ^^^^^^^^^^^^^^\n" + |
3651 |
"Method b(A<String>) has the same erasure b(A<T>) as another method in type X\n" + |
3652 |
"----------\n" + |
3653 |
"2. ERROR in X.java (at line 3)\n" + |
3619 |
" <N extends B> B b(A<Number> n) { return null; }\n" + |
3654 |
" <N extends B> B b(A<Number> n) { return null; }\n" + |
3620 |
" ^^^^^^^^^^^^^^\n" + |
3655 |
" ^^^^^^^^^^^^^^\n" + |
3621 |
"Method b(A<Number>) has the same erasure b(A<T>) as another method in type X\n" + |
3656 |
"Method b(A<Number>) has the same erasure b(A<T>) as another method in type X\n" + |
Lines 3636-3642
Link Here
|
3636 |
"class B {}\n" |
3671 |
"class B {}\n" |
3637 |
}, |
3672 |
}, |
3638 |
"----------\n" + |
3673 |
"----------\n" + |
3639 |
"1. ERROR in X.java (at line 3)\n" + |
3674 |
"1. ERROR in X.java (at line 2)\n" + |
|
|
3675 |
" B c(A<String> s) { return null; }\n" + |
3676 |
" ^^^^^^^^^^^^^^\n" + |
3677 |
"Method c(A<String>) has the same erasure c(A<T>) as another method in type X\n" + |
3678 |
"----------\n" + |
3679 |
"2. ERROR in X.java (at line 3)\n" + |
3640 |
" B c(A<Number> n) { return null; }\n" + |
3680 |
" B c(A<Number> n) { return null; }\n" + |
3641 |
" ^^^^^^^^^^^^^^\n" + |
3681 |
" ^^^^^^^^^^^^^^\n" + |
3642 |
"Method c(A<Number>) has the same erasure c(A<T>) as another method in type X\n" + |
3682 |
"Method c(A<Number>) has the same erasure c(A<T>) as another method in type X\n" + |
Lines 3677-3688
Link Here
|
3677 |
"class B {}\n" |
3717 |
"class B {}\n" |
3678 |
}, |
3718 |
}, |
3679 |
"----------\n" + |
3719 |
"----------\n" + |
3680 |
"1. ERROR in X.java (at line 3)\n" + |
3720 |
"1. ERROR in X.java (at line 2)\n" + |
|
|
3721 |
" <N extends B> N a(A<Number> s) { return null; }\n" + |
3722 |
" ^^^^^^^^^^^^^^\n" + |
3723 |
"Duplicate method a(A<Number>) in type X\n" + |
3724 |
"----------\n" + |
3725 |
"2. ERROR in X.java (at line 3)\n" + |
3681 |
" <N> B a(A<Number> n) { return null; }\n" + |
3726 |
" <N> B a(A<Number> n) { return null; }\n" + |
3682 |
" ^^^^^^^^^^^^^^\n" + |
3727 |
" ^^^^^^^^^^^^^^\n" + |
3683 |
"Duplicate method a(A<Number>) in type X\n" + |
3728 |
"Duplicate method a(A<Number>) in type X\n" + |
3684 |
"----------\n" + |
3729 |
"----------\n" + |
3685 |
"2. ERROR in X.java (at line 5)\n" + |
3730 |
"3. ERROR in X.java (at line 4)\n" + |
|
|
3731 |
" <N extends B> N b(A<Number> s) { return null; }\n" + |
3732 |
" ^^^^^^^^^^^^^^\n" + |
3733 |
"Method b(A<Number>) has the same erasure b(A<T>) as another method in type X\n" + |
3734 |
"----------\n" + |
3735 |
"4. ERROR in X.java (at line 5)\n" + |
3686 |
" <N> B b(A<String> n) { return null; }\n" + |
3736 |
" <N> B b(A<String> n) { return null; }\n" + |
3687 |
" ^^^^^^^^^^^^^^\n" + |
3737 |
" ^^^^^^^^^^^^^^\n" + |
3688 |
"Method b(A<String>) has the same erasure b(A<T>) as another method in type X\n" + |
3738 |
"Method b(A<String>) has the same erasure b(A<T>) as another method in type X\n" + |
Lines 3706-3717
Link Here
|
3706 |
"class B {}\n" |
3756 |
"class B {}\n" |
3707 |
}, |
3757 |
}, |
3708 |
"----------\n" + |
3758 |
"----------\n" + |
3709 |
"1. ERROR in X.java (at line 3)\n" + |
3759 |
"1. ERROR in X.java (at line 2)\n" + |
|
|
3760 |
" <N extends B> void a(A<Number> s) {}\n" + |
3761 |
" ^^^^^^^^^^^^^^\n" + |
3762 |
"Duplicate method a(A<Number>) in type X\n" + |
3763 |
"----------\n" + |
3764 |
"2. ERROR in X.java (at line 3)\n" + |
3710 |
" <N extends B> B a(A<Number> n) { return null; }\n" + |
3765 |
" <N extends B> B a(A<Number> n) { return null; }\n" + |
3711 |
" ^^^^^^^^^^^^^^\n" + |
3766 |
" ^^^^^^^^^^^^^^\n" + |
3712 |
"Duplicate method a(A<Number>) in type X\n" + |
3767 |
"Duplicate method a(A<Number>) in type X\n" + |
3713 |
"----------\n" + |
3768 |
"----------\n" + |
3714 |
"2. ERROR in X.java (at line 5)\n" + |
3769 |
"3. ERROR in X.java (at line 4)\n" + |
|
|
3770 |
" <N extends B> Object b(A<Number> s) { return null; }\n" + |
3771 |
" ^^^^^^^^^^^^^^\n" + |
3772 |
"Duplicate method b(A<Number>) in type X\n" + |
3773 |
"----------\n" + |
3774 |
"4. ERROR in X.java (at line 5)\n" + |
3715 |
" <N extends B> B b(A<Number> n) { return null; }\n" + |
3775 |
" <N extends B> B b(A<Number> n) { return null; }\n" + |
3716 |
" ^^^^^^^^^^^^^^\n" + |
3776 |
" ^^^^^^^^^^^^^^\n" + |
3717 |
"Duplicate method b(A<Number>) in type X\n" + |
3777 |
"Duplicate method b(A<Number>) in type X\n" + |
Lines 3735-3746
Link Here
|
3735 |
"class B {}\n" |
3795 |
"class B {}\n" |
3736 |
}, |
3796 |
}, |
3737 |
"----------\n" + |
3797 |
"----------\n" + |
3738 |
"1. ERROR in X.java (at line 3)\r\n" + |
3798 |
"1. ERROR in X.java (at line 2)\r\n" + |
|
|
3799 |
" void a(A<Number> s) {}\r\n" + |
3800 |
" ^^^^^^^^^^^^^^\n" + |
3801 |
"Duplicate method a(A<Number>) in type X\n" + |
3802 |
"----------\n" + |
3803 |
"2. ERROR in X.java (at line 3)\r\n" + |
3739 |
" B a(A<Number> n) { return null; }\r\n" + |
3804 |
" B a(A<Number> n) { return null; }\r\n" + |
3740 |
" ^^^^^^^^^^^^^^\n" + |
3805 |
" ^^^^^^^^^^^^^^\n" + |
3741 |
"Duplicate method a(A<Number>) in type X\n" + |
3806 |
"Duplicate method a(A<Number>) in type X\n" + |
3742 |
"----------\n" + |
3807 |
"----------\n" + |
3743 |
"2. ERROR in X.java (at line 5)\r\n" + |
3808 |
"3. ERROR in X.java (at line 4)\r\n" + |
|
|
3809 |
" Object b(A<Number> s) {}\r\n" + |
3810 |
" ^^^^^^^^^^^^^^\n" + |
3811 |
"Duplicate method b(A<Number>) in type X\n" + |
3812 |
"----------\n" + |
3813 |
"4. ERROR in X.java (at line 5)\r\n" + |
3744 |
" B b(A<Number> n) { return null; }\r\n" + |
3814 |
" B b(A<Number> n) { return null; }\r\n" + |
3745 |
" ^^^^^^^^^^^^^^\n" + |
3815 |
" ^^^^^^^^^^^^^^\n" + |
3746 |
"Duplicate method b(A<Number>) in type X\n" + |
3816 |
"Duplicate method b(A<Number>) in type X\n" + |
Lines 3783-3789
Link Here
|
3783 |
"class A<T> {}\n", |
3853 |
"class A<T> {}\n", |
3784 |
}, |
3854 |
}, |
3785 |
"----------\n" + |
3855 |
"----------\n" + |
3786 |
"1. ERROR in X.java (at line 3)\n" + |
3856 |
"1. ERROR in X.java (at line 2)\n" + |
|
|
3857 |
" void foo(A<String> a) {}\n" + |
3858 |
" ^^^^^^^^^^^^^^^^\n" + |
3859 |
"Method foo(A<String>) has the same erasure foo(A<T>) as another method in type X\n" + |
3860 |
"----------\n" + |
3861 |
"2. ERROR in X.java (at line 3)\n" + |
3787 |
" void foo(A<Integer> a) {}\n" + |
3862 |
" void foo(A<Integer> a) {}\n" + |
3788 |
" ^^^^^^^^^^^^^^^^^\n" + |
3863 |
" ^^^^^^^^^^^^^^^^^\n" + |
3789 |
"Method foo(A<Integer>) has the same erasure foo(A<T>) as another method in type X\n" + |
3864 |
"Method foo(A<Integer>) has the same erasure foo(A<T>) as another method in type X\n" + |
Lines 3928-3934
Link Here
|
3928 |
"}\n" |
4003 |
"}\n" |
3929 |
}, |
4004 |
}, |
3930 |
"----------\n" + |
4005 |
"----------\n" + |
3931 |
"1. ERROR in X.java (at line 3)\n" + |
4006 |
"1. ERROR in X.java (at line 2)\n" + |
|
|
4007 |
" void a(Object x) {}\n" + |
4008 |
" ^^^^^^^^^^^\n" + |
4009 |
"Method a(Object) has the same erasure a(Object) as another method in type X\n" + |
4010 |
"----------\n" + |
4011 |
"2. ERROR in X.java (at line 3)\n" + |
3932 |
" <T> T a(T x) { return null; }\n" + |
4012 |
" <T> T a(T x) { return null; }\n" + |
3933 |
" ^^^^^^\n" + |
4013 |
" ^^^^^^\n" + |
3934 |
"Method a(T) has the same erasure a(Object) as another method in type X\n" + |
4014 |
"Method a(T) has the same erasure a(Object) as another method in type X\n" + |
Lines 3954-3960
Link Here
|
3954 |
"}\n" |
4034 |
"}\n" |
3955 |
}, |
4035 |
}, |
3956 |
"----------\n" + |
4036 |
"----------\n" + |
3957 |
"1. ERROR in X.java (at line 7)\n" + |
4037 |
"1. ERROR in X.java (at line 6)\n" + |
|
|
4038 |
" String a(X x) { return null; }\n" + |
4039 |
" ^^^^^^\n" + |
4040 |
"Method a(X) has the same erasure a(X) as another method in type X\n" + |
4041 |
"----------\n" + |
4042 |
"2. ERROR in X.java (at line 7)\n" + |
3958 |
" <T extends X> T a(T x) { return null; }\n" + |
4043 |
" <T extends X> T a(T x) { return null; }\n" + |
3959 |
" ^^^^^^\n" + |
4044 |
" ^^^^^^\n" + |
3960 |
"Method a(T) has the same erasure a(X) as another method in type X\n" + |
4045 |
"Method a(T) has the same erasure a(X) as another method in type X\n" + |
Lines 3986-3992
Link Here
|
3986 |
"}\n" |
4071 |
"}\n" |
3987 |
}, |
4072 |
}, |
3988 |
"----------\n" + |
4073 |
"----------\n" + |
3989 |
"1. ERROR in X.java (at line 3)\r\n" + |
4074 |
"1. ERROR in X.java (at line 2)\r\n" + |
|
|
4075 |
" <T1 extends X<T1>> void dupT() {}\r\n" + |
4076 |
" ^^^^^^\n" + |
4077 |
"Duplicate method dupT() in type X<T>\n" + |
4078 |
"----------\n" + |
4079 |
"2. ERROR in X.java (at line 3)\r\n" + |
3990 |
" <T2 extends X<T2>> Object dupT() {return null;}\r\n" + |
4080 |
" <T2 extends X<T2>> Object dupT() {return null;}\r\n" + |
3991 |
" ^^^^^^\n" + |
4081 |
" ^^^^^^\n" + |
3992 |
"Duplicate method dupT() in type X<T>\n" + |
4082 |
"Duplicate method dupT() in type X<T>\n" + |
Lines 4936-4942
Link Here
|
4936 |
"interface J {}\n" |
5026 |
"interface J {}\n" |
4937 |
}, |
5027 |
}, |
4938 |
"----------\n" + |
5028 |
"----------\n" + |
4939 |
"1. ERROR in A.java (at line 3)\r\n" + |
5029 |
"1. ERROR in A.java (at line 2)\r\n" + |
|
|
5030 |
" <T, S extends J & I<T>> void foo() { }\r\n" + |
5031 |
" ^^^^^\n" + |
5032 |
"Duplicate method foo() in type A\n" + |
5033 |
"----------\n" + |
5034 |
"2. ERROR in A.java (at line 3)\r\n" + |
4940 |
" <T, S extends I<T> & J> void foo() { }\r\n" + |
5035 |
" <T, S extends I<T> & J> void foo() { }\r\n" + |
4941 |
" ^^^^^\n" + |
5036 |
" ^^^^^\n" + |
4942 |
"Duplicate method foo() in type A\n" + |
5037 |
"Duplicate method foo() in type A\n" + |
Lines 4957-4963
Link Here
|
4957 |
"interface K extends J {}" |
5052 |
"interface K extends J {}" |
4958 |
}, |
5053 |
}, |
4959 |
"----------\n" + |
5054 |
"----------\n" + |
4960 |
"1. ERROR in A.java (at line 3)\r\n" + |
5055 |
"1. ERROR in A.java (at line 2)\r\n" + |
|
|
5056 |
" <T, S extends J & I<T>> void foo() { }\r\n" + |
5057 |
" ^^^^^\n" + |
5058 |
"Duplicate method foo() in type A\n" + |
5059 |
"----------\n" + |
5060 |
"2. ERROR in A.java (at line 3)\r\n" + |
4961 |
" <T, S extends I<T> & K> void foo() { }\r\n" + |
5061 |
" <T, S extends I<T> & K> void foo() { }\r\n" + |
4962 |
" ^^^^^\n" + |
5062 |
" ^^^^^\n" + |
4963 |
"Duplicate method foo() in type A\n" + |
5063 |
"Duplicate method foo() in type A\n" + |
Lines 5878-5936
Link Here
|
5878 |
"5. ERROR in DataSet.java (at line 6)\n" + |
5978 |
"5. ERROR in DataSet.java (at line 6)\n" + |
5879 |
" public <S> S[] toArray(S[] s) {\n" + |
5979 |
" public <S> S[] toArray(S[] s) {\n" + |
5880 |
" ^^^^^^^^^^^^^^\n" + |
5980 |
" ^^^^^^^^^^^^^^\n" + |
5881 |
"Name clash: The method toArray(S[]) of type DataSet<T> has the same erasure as toArray(Object[]) of type List but does not override it\n" + |
5981 |
"Method toArray(S[]) has the same erasure toArray(Object[]) as another method in type DataSet<T>\n" + |
5882 |
"----------\n" + |
5982 |
"----------\n" + |
5883 |
"6. ERROR in DataSet.java (at line 6)\n" + |
5983 |
"6. ERROR in DataSet.java (at line 6)\n" + |
5884 |
" public <S> S[] toArray(S[] s) {\n" + |
5984 |
" public <S> S[] toArray(S[] s) {\n" + |
5885 |
" ^^^^^^^^^^^^^^\n" + |
5985 |
" ^^^^^^^^^^^^^^\n" + |
|
|
5986 |
"Name clash: The method toArray(S[]) of type DataSet<T> has the same erasure as toArray(Object[]) of type List but does not override it\n" + |
5987 |
"----------\n" + |
5988 |
"7. ERROR in DataSet.java (at line 6)\n" + |
5989 |
" public <S> S[] toArray(S[] s) {\n" + |
5990 |
" ^^^^^^^^^^^^^^\n" + |
5886 |
"Name clash: The method toArray(S[]) of type DataSet<T> has the same erasure as toArray(Object[]) of type Collection but does not override it\n" + |
5991 |
"Name clash: The method toArray(S[]) of type DataSet<T> has the same erasure as toArray(Object[]) of type Collection but does not override it\n" + |
5887 |
"----------\n" + |
5992 |
"----------\n" + |
5888 |
"7. ERROR in DataSet.java (at line 9)\n" + |
5993 |
"8. ERROR in DataSet.java (at line 9)\n" + |
5889 |
" public Object[] toArray(Object[] o) {\n" + |
5994 |
" public Object[] toArray(Object[] o) {\n" + |
5890 |
" ^^^^^^^^^^^^^^^^^^^\n" + |
5995 |
" ^^^^^^^^^^^^^^^^^^^\n" + |
5891 |
"Method toArray(Object[]) has the same erasure toArray(Object[]) as another method in type DataSet<T>\n" + |
5996 |
"Method toArray(Object[]) has the same erasure toArray(Object[]) as another method in type DataSet<T>\n" + |
5892 |
"----------\n" + |
5997 |
"----------\n" + |
5893 |
"8. WARNING in DataSet.java (at line 14)\n" + |
5998 |
"9. WARNING in DataSet.java (at line 14)\n" + |
5894 |
" public boolean addAll(Collection c) { return false; }\n" + |
5999 |
" public boolean addAll(Collection c) { return false; }\n" + |
5895 |
" ^^^^^^^^^^\n" + |
6000 |
" ^^^^^^^^^^\n" + |
5896 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
6001 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
5897 |
"----------\n" + |
6002 |
"----------\n" + |
5898 |
"9. WARNING in DataSet.java (at line 15)\n" + |
6003 |
"10. WARNING in DataSet.java (at line 15)\n" + |
5899 |
" public boolean addAll(int index, Collection c) { return false; }\n" + |
6004 |
" public boolean addAll(int index, Collection c) { return false; }\n" + |
5900 |
" ^^^^^^^^^^\n" + |
6005 |
" ^^^^^^^^^^\n" + |
5901 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
6006 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
5902 |
"----------\n" + |
6007 |
"----------\n" + |
5903 |
"10. WARNING in DataSet.java (at line 18)\n" + |
6008 |
"11. WARNING in DataSet.java (at line 18)\n" + |
5904 |
" public boolean containsAll(Collection c) { return false; }\n" + |
6009 |
" public boolean containsAll(Collection c) { return false; }\n" + |
5905 |
" ^^^^^^^^^^\n" + |
6010 |
" ^^^^^^^^^^\n" + |
5906 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
6011 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
5907 |
"----------\n" + |
6012 |
"----------\n" + |
5908 |
"11. WARNING in DataSet.java (at line 22)\n" + |
6013 |
"12. WARNING in DataSet.java (at line 22)\n" + |
5909 |
" public Iterator iterator() { return null; }\n" + |
6014 |
" public Iterator iterator() { return null; }\n" + |
5910 |
" ^^^^^^^^\n" + |
6015 |
" ^^^^^^^^\n" + |
5911 |
"Iterator is a raw type. References to generic type Iterator<E> should be parameterized\n" + |
6016 |
"Iterator is a raw type. References to generic type Iterator<E> should be parameterized\n" + |
5912 |
"----------\n" + |
6017 |
"----------\n" + |
5913 |
"12. WARNING in DataSet.java (at line 24)\n" + |
6018 |
"13. WARNING in DataSet.java (at line 24)\n" + |
5914 |
" public ListIterator listIterator() { return null; }\n" + |
6019 |
" public ListIterator listIterator() { return null; }\n" + |
5915 |
" ^^^^^^^^^^^^\n" + |
6020 |
" ^^^^^^^^^^^^\n" + |
5916 |
"ListIterator is a raw type. References to generic type ListIterator<E> should be parameterized\n" + |
6021 |
"ListIterator is a raw type. References to generic type ListIterator<E> should be parameterized\n" + |
5917 |
"----------\n" + |
6022 |
"----------\n" + |
5918 |
"13. WARNING in DataSet.java (at line 25)\n" + |
6023 |
"14. WARNING in DataSet.java (at line 25)\n" + |
5919 |
" public ListIterator listIterator(int index) { return null; }\n" + |
6024 |
" public ListIterator listIterator(int index) { return null; }\n" + |
5920 |
" ^^^^^^^^^^^^\n" + |
6025 |
" ^^^^^^^^^^^^\n" + |
5921 |
"ListIterator is a raw type. References to generic type ListIterator<E> should be parameterized\n" + |
6026 |
"ListIterator is a raw type. References to generic type ListIterator<E> should be parameterized\n" + |
5922 |
"----------\n" + |
6027 |
"----------\n" + |
5923 |
"14. WARNING in DataSet.java (at line 28)\n" + |
6028 |
"15. WARNING in DataSet.java (at line 28)\n" + |
5924 |
" public boolean removeAll(Collection c) { return false; }\n" + |
6029 |
" public boolean removeAll(Collection c) { return false; }\n" + |
5925 |
" ^^^^^^^^^^\n" + |
6030 |
" ^^^^^^^^^^\n" + |
5926 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
6031 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
5927 |
"----------\n" + |
6032 |
"----------\n" + |
5928 |
"15. WARNING in DataSet.java (at line 29)\n" + |
6033 |
"16. WARNING in DataSet.java (at line 29)\n" + |
5929 |
" public boolean retainAll(Collection c) { return false; }\n" + |
6034 |
" public boolean retainAll(Collection c) { return false; }\n" + |
5930 |
" ^^^^^^^^^^\n" + |
6035 |
" ^^^^^^^^^^\n" + |
5931 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
6036 |
"Collection is a raw type. References to generic type Collection<E> should be parameterized\n" + |
5932 |
"----------\n" + |
6037 |
"----------\n" + |
5933 |
"16. WARNING in DataSet.java (at line 32)\n" + |
6038 |
"17. WARNING in DataSet.java (at line 32)\n" + |
5934 |
" public List subList(int fromIndex, int toIndex) { return null; }\n" + |
6039 |
" public List subList(int fromIndex, int toIndex) { return null; }\n" + |
5935 |
" ^^^^\n" + |
6040 |
" ^^^^\n" + |
5936 |
"List is a raw type. References to generic type List<E> should be parameterized\n" + |
6041 |
"List is a raw type. References to generic type List<E> should be parameterized\n" + |
Lines 6124-6130
Link Here
|
6124 |
"}" |
6229 |
"}" |
6125 |
}, |
6230 |
}, |
6126 |
"----------\n" + |
6231 |
"----------\n" + |
6127 |
"1. ERROR in X.java (at line 14)\n" + |
6232 |
"1. ERROR in X.java (at line 11)\n" + |
|
|
6233 |
" Integer getX(List<Integer> l) {\n" + |
6234 |
" ^^^^^^^^^^^^^^^^^^^^^\n" + |
6235 |
"Duplicate method getX(List<Integer>) in type Y\n" + |
6236 |
"----------\n" + |
6237 |
"2. ERROR in X.java (at line 14)\n" + |
6128 |
" String getX(List<Integer> l) {\n" + |
6238 |
" String getX(List<Integer> l) {\n" + |
6129 |
" ^^^^^^^^^^^^^^^^^^^^^\n" + |
6239 |
" ^^^^^^^^^^^^^^^^^^^^^\n" + |
6130 |
"Duplicate method getX(List<Integer>) in type Y\n" + |
6240 |
"Duplicate method getX(List<Integer>) in type Y\n" + |
Lines 8076-8097
Link Here
|
8076 |
"}\n" |
8186 |
"}\n" |
8077 |
}, |
8187 |
}, |
8078 |
"----------\n" + |
8188 |
"----------\n" + |
8079 |
"1. ERROR in X.java (at line 7)\n" + |
8189 |
"1. ERROR in X.java (at line 3)\n" + |
|
|
8190 |
" public MyT<Void> method3(D1<String> harg, D1<String> oarg, D1<java.util.Date> date){\n" + |
8191 |
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + |
8192 |
"Method method3(X.D1<String>, X.D1<String>, X.D1<Date>) has the same erasure method3(X.D1<T>, X.D1<T>, X.D1<T>) as another method in type X\n" + |
8193 |
"----------\n" + |
8194 |
"2. ERROR in X.java (at line 7)\n" + |
8080 |
" public MyT<Void> method3(D1<String> harg, D1<String> oarg, D1<String> date){\n" + |
8195 |
" public MyT<Void> method3(D1<String> harg, D1<String> oarg, D1<String> date){\n" + |
8081 |
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + |
8196 |
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + |
8082 |
"Method method3(X.D1<String>, X.D1<String>, X.D1<String>) has the same erasure method3(X.D1<T>, X.D1<T>, X.D1<T>) as another method in type X\n" + |
8197 |
"Method method3(X.D1<String>, X.D1<String>, X.D1<String>) has the same erasure method3(X.D1<T>, X.D1<T>, X.D1<T>) as another method in type X\n" + |
8083 |
"----------\n" + |
8198 |
"----------\n" + |
8084 |
"2. WARNING in X.java (at line 11)\n" + |
8199 |
"3. WARNING in X.java (at line 11)\n" + |
8085 |
" public MyT<Void> method3(D1<String> harg, D1<String> oarg, D1<java.util.Date> date, D1 ... notUsed){\n" + |
8200 |
" public MyT<Void> method3(D1<String> harg, D1<String> oarg, D1<java.util.Date> date, D1 ... notUsed){\n" + |
8086 |
" ^^\n" + |
8201 |
" ^^\n" + |
8087 |
"X.D1 is a raw type. References to generic type X.D1<T> should be parameterized\n" + |
8202 |
"X.D1 is a raw type. References to generic type X.D1<T> should be parameterized\n" + |
8088 |
"----------\n" + |
8203 |
"----------\n" + |
8089 |
"3. WARNING in X.java (at line 15)\n" + |
8204 |
"4. WARNING in X.java (at line 15)\n" + |
8090 |
" public MyT<Void> method3(D1<String> harg, D1<String> oarg, D1<String> date, D2 ... notUsed){\n" + |
8205 |
" public MyT<Void> method3(D1<String> harg, D1<String> oarg, D1<String> date, D2 ... notUsed){\n" + |
8091 |
" ^^\n" + |
8206 |
" ^^\n" + |
8092 |
"X.D2 is a raw type. References to generic type X.D2<T> should be parameterized\n" + |
8207 |
"X.D2 is a raw type. References to generic type X.D2<T> should be parameterized\n" + |
8093 |
"----------\n" |
8208 |
"----------\n"); |
8094 |
); |
|
|
8095 |
} |
8209 |
} |
8096 |
public void test151() { |
8210 |
public void test151() { |
8097 |
this.runConformTest( |
8211 |
this.runConformTest( |