On May 26, 11:30 am, A Curious Developer <[email protected]> wrote:
> How do I make the Java assert statement work? By "work" I mean that a
> failed assertion should either stop program execution or at least log
> the failure. Currently, neither happens. I understand there is a run-
> time option to enable this (-ea), but I don't know where to specify
> it. Changing "Preferences\Java\Installed JREs\Edit JRE\Default VM
> Arguments" has no effect, probably because those settings are not used
> for the Android execution.

"Controlling the Embedded VM":

  
http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/embedded-vm-control.html;hb=HEAD

For phones where root isn't available, there's a semi-supported
"debug.assert=1" property that turns assertions on, mostly.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to