RFR: 8257037: No javac warning when calling deprecated constructor with diamond [v5]
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Mon Dec 7 12:18:15 UTC 2020
On Mon, 7 Dec 2020 12:00:29 GMT, Guoxiong Li <github.com+13688759+lgxbslgx at openjdk.org> wrote:
>> Hi all,
>>
>> When calling deprecated constructor with diamond, the compiler doesn't output warning.
>> The test case is shown below.
>>
>> GenericClass<Object> o2 = new GenericClass<>();
>>
>> public class GenericClass<T> {
>> @Deprecated
>> public GenericClass() {}
>> }
>>
>> This patch solves the bug and adds corresponding test case.
>> Thank you for taking the time to review.
>>
>> Best Regards.
>
> Guoxiong Li has updated the pull request incrementally with one additional commit since the last revision:
>
> Fall back to the previos version.
Looks good to go
-------------
Marked as reviewed by mcimadamore (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/1490
More information about the compiler-dev
mailing list