[Pharo-project] Object>>deprecated:on:in: doesn't respect state of Deprecation class>>showWarning:
fernando.olivero at usi.ch
Mon Mar 19 17:55:07 EDT 2012
please create the issue, and attach the fix.
On Mon, Mar 19, 2012 at 10:47 PM, Martin Sandiford <ms at mcdev.com.au> wrote:
> Hi all,
> Kind of new to Pharo, so not sure if this is intended behaviour or
> not, but "Object>>deprecated:on:in:" doesn't respect the current state
> of the "Deprecation class>>showWarning" setting.
> This was unexpected for me --- in a headless setting the warning
> dialog causes the VM to exit.
> To reproduce (in 1.4 14399):
> Deprecation showWarning: false.
> true and: [ true ] and: [ true ]. "Boolean>>and:and: sends deprecated:on:in:"
> Fix seems straightforward: wrap the current contents of
> "deprecated:on:in:" in "Deprecation showWarning ifTrue: [...]".
> If there are no objections, I'll raise a bug in the tracker.
More information about the Pharo-dev