<Swing Dev> <AWT Dev> RFR:8168316: Suppress deprecation warnings for Applet classes in java.desktop

Phil Race philip.race at oracle.com
Fri Nov 4 23:00:09 UTC 2016


I've been testing this by re-enabling deprecation so


On 11/02/2016 10:50 PM, Prasanta Sadhukhan wrote:
>
> Do we need the suppression in JavaSoundAudioClip.java as I could not 
> find any mention of Applet in that class?
>
> In AppletViewer.java
> shouldn't we need to add "deprecation" to
> 45 @SuppressWarnings("serial") // JDK implementation class
No, it is not needed there since "TextFrame" isn't using any deprecated 
class.
> Do we still need this
>
> 160     @SuppressWarnings("deprecation")
> since we added
>
> 120 @SuppressWarnings({"serial", "deprecation"})

I agree 160 should not be needed.
>
> Other than that, looks good to me.

OK. I'm going to push with this tweak as the deprecation warnings
are starting to pile up again and I need to get at least part of it fixed.

-phil
>
> Regards
> Prasanta
> On 10/20/2016 1:44 AM, Philip Race wrote:
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8168316
>> Webrev: http://cr.openjdk.java.net/~prr/8168316/
>>
>> When applets were deprecated it seems that due to all deprecated
>> warning being suppressed in java.desktop many places that should
>> have been updated weren't
>>
>> This resolves the applet ones .. as a precursor to fixing up the 
>> other issues
>> that cause this global supression.
>>
>> -phil
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20161104/65c53696/attachment.html>


More information about the swing-dev mailing list