Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3735)

Unified Diff: build/android/gyp/create_java_binary_script.py

Issue 1151773003: Enable Java assertions in locally run Java binaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/create_java_binary_script.py
diff --git a/build/android/gyp/create_java_binary_script.py b/build/android/gyp/create_java_binary_script.py
index d632728ac7a79662e193904b096f58fe163d0bcc..5de43f2d4a45d7f8b2b73394803926a5b5edd0cc 100755
--- a/build/android/gyp/create_java_binary_script.py
+++ b/build/android/gyp/create_java_binary_script.py
@@ -36,6 +36,7 @@ if os.getcwd() != self_dir:
java_args = [
"java",
"-classpath", ":".join(classpath),
+ "-enableassertions",
cjhopman 2015/06/17 21:50:15 So this enables assertions for all java binaries.
Bernhard Bauer 2015/06/18 16:37:25 Hm, I don't really see an advantage in having asse
cjhopman 2015/06/19 22:39:07 Well, this isn't just for tests. I'd agree that fo
\"{main_class}\"] + sys.argv[1:]
os.execvp("java", java_args)
"""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698