Nick,

On Apr 25, 2014, at 3:36 PM, Nick Alexander <[email protected]> wrote:

> On 2014-04-25, 1:30 PM, James Willcox wrote:
>> Greetings,
>> 
>> We don’t have anything like MOZ_ASSERT() in Java land, so I added an 
>> “Assert” class[1]. Just like MOZ_ASSERT() in C++ land, these assertions are 
>> only active in debug mode. Hopefully we can use these to catch some bad 
>> stuff.
> 
> I think this is a good thing, thanks for doing it!  Is there a reason we 
> didn't just use Java's assert mechanism [1], and enable/disable checking at 
> compile time with MOZ_DEBUG and friends?
> 
> Best,
> Nick
> 
> [1] http://docs.oracle.com/javase/7/docs/technotes/guides/language/assert.html


That was my first thought as well, but apparently those are only triggered if 
you set a property on the device, which is less than ideal. More here: 
http://stackoverflow.com/questions/6176441/how-to-use-assert-in-android

James
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to