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

Suppress Deprecation warnings for deprecated Swing APIs

    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

        Activity

        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/449518f6a468
        User: prr
        Date: 2016-11-14 18:00:05 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/449518f6a468 User: prr Date: 2016-11-14 18:00:05 +0000
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/client/rev/48086092c1db
        User: prr
        Date: 2016-11-14 18:01:02 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/rev/48086092c1db User: prr Date: 2016-11-14 18:01:02 +0000
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/jdk9/rev/48086092c1db
        User: lana
        Date: 2016-11-30 21:38:51 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/rev/48086092c1db User: lana Date: 2016-11-30 21:38:51 +0000
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/449518f6a468
        User: lana
        Date: 2016-11-30 21:39:08 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/449518f6a468 User: lana Date: 2016-11-30 21:39:08 +0000

          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: