-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b147
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
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