Noone knows how to deprecate a getter without getting erroneous compiler 
warnings from the setter?


--- In flexcoders@yahoogroups.com, "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