Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8169518

Suppress Deprecation warnings for deprecated Swing APIs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:

      Description

      There are some 60+ deprecation warnings when building Swing
      that mostly result from the deprecation of int based APIs.
      If we fix these we can re-enable -Xlint:deprecation to prevent
      even more creeping in
      Here are the distinct warnings and I will attach a file with the
      full list of the sites from which they originate :-
      warning: [deprecation] viewToModel(JTextComponent,Point,Bias[]) in TextUI has been deprecated
      warning: [deprecation] getToolTipText(JTextComponent,Point) in TextUI has been deprecatedwarning: [deprecation] viewToModel(JTextComponent,Point,Bias[]) in TextUI has been deprecated
      warning: [deprecation] viewToModel(JTextComponent,Point,Bias[]) in TextUI has been deprecated
      warning: [deprecation] getPositionAbove(JTextComponent,int,int) in Utilities has been deprecated
      warning: [deprecation] getPositionBelow(JTextComponent,int,int) in Utilities has been deprecated
      warning: [deprecation] getTabbedTextWidth(Segment,FontMetrics,int,TabExpander,int) in Utilities has been deprecated
      warning: [deprecation] drawUnselectedText(Graphics,int,int,int,int) in PlainView has been deprecated
       warning: [deprecation] drawSelectedText(Graphics,int,int,int,int) in PlainView has been deprecated
      warning: [deprecation] getBreakLocation(Segment,FontMetrics,int,int,TabExpander,int) in Utilities has been deprecated
      warning: [deprecation] getTabbedTextOffset(Segment,FontMetrics,int,int,TabExpander,int,boolean) in Utilities has been deprecated
      warning: [deprecation] notifyDisplayChanged(int) in LightweightFrame has been deprecated

        Attachments

          Activity

            People

            Assignee:
            prr Philip Race
            Reporter:
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: