[haiku-development] Re: BMimeTest incompatibility, should I fix?

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 15 Mar 2012 10:41:04 +0100 (CET)

Hi John,

On March 15, 2012 at 6:01 AM John Scipione <jscipione@xxxxxxxxx> wrote:
> I was performing some regression testing on my recent changes to
> BMimeType when I noticed an incompatibility with BeOS R5. As part of
> my testing I ran the following code on BeOS R5, Haiku Alpha3 and
> hrev43856 (my changes):

BTW putting these into a unit test would be great, if we don't already do that,
that is.

> My first question is, is this intentional or should I reproduce the
> BeOS 5 behavior on Haiku?
>
> My second question is, if this is an intentional incompatibility,
> should we go one step further and also consider two BMimeType objects
> initialized to NULL to be equal?

I would say that's the only thing that makes sense; initializing a MIME type
with NULL should be equal to it not being initialized. I don't think it's worth
resembling BeOS behavior here.

Bye,
   Axel.

Other related posts: