Srinivas, thanks for your reply

The example code in the docs is on the setter only, however, for me, this also 
generates a compiler warning at the line of the setter.

--- In [email protected], "Srinivas S.M" <s.m.srini...@...> wrote:
>
> Jim,
> 
> http://livedocs.adobe.com/flex/3/html/help.html?content=metadata_3.html check
> the documentation. I believe you are suppose to use it on setter only.
> 
> Regards
> Srinivas
> 
> On Wed, Apr 7, 2010 at 1:24 PM, jimmartin10 <keryk...@...> wrote:
> 
> >
> >
> > If I use the [Deprecated] tag on a getter only, e.g.
> >
> > [Deprecated]
> > public function get myOldProperty():int
> > {
> > return 0;
> > }
> >
> > public function set myOldProperty(value:int):void
> > {
> > }
> >
> > Then I get a warning at the line of the setter. "myOldProperty has been
> > deprecated"
> >
> > If I use the [Deprecated] tag on both getter and setter, e.g.
> >
> > [Deprecated]
> > public function get myOldProperty():int
> > {
> > return 0;
> > }
> >
> > [Deprecated]
> > public function set myOldProperty(value:int):void
> > {
> > }
> >
> > Then I get a duplicate deprecated tag warning.
> >
> > These warnings then clog up the warnings panel, and make the use of the
> > Deprecated tag pointless, as I will be unable to see any genuine warnings
> > about actual use of the deprecated property.
> >
> > Is it possible to Deprecate a property which has mutators and only see
> > warnings for line where the property is referenced?
> >
> > Environment:
> > XP
> > SDK 3.2
> > Eclipse Plugin
> >
> >  
> >
>


Reply via email to