diff options
author | Alex Light <allight@google.com> | 2016-09-09 21:56:37 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-09-09 21:56:37 +0000 |
commit | 76e172277a650f818b10ec1fc586ca40f18cf149 (patch) | |
tree | be2d01e890d908ace99f7da284ea62121665b847 /test/utils/python/generate_java_main.py | |
parent | ee5c399e87ccd3ab0441c8987319dc05215f55a9 (diff) | |
parent | b47a1cc17f53951b900e56bb68c58c972517cb07 (diff) |
Fix vtable corruption issue
am: b47a1cc17f
Change-Id: I0f94ef0789b8a15525e38765e45c4a3383af643e
Diffstat (limited to 'test/utils/python/generate_java_main.py')
-rwxr-xr-x | test/utils/python/generate_java_main.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/utils/python/generate_java_main.py b/test/utils/python/generate_java_main.py index f66d0dd372..1c76b06dda 100755 --- a/test/utils/python/generate_java_main.py +++ b/test/utils/python/generate_java_main.py @@ -175,7 +175,11 @@ class Func(mixins.Named, mixins.NameComparableMixin): return; }} catch (Error e) {{ System.out.printf("%s-{invoke_type} on {farg}: {callfunc}() threw exception!\\n", s); - e.printStackTrace(System.out); + if (e instanceof IncompatibleClassChangeError) {{ + System.out.printf("Exception is of type %s\\n", e.getClass().getName()); + }} else {{ + e.printStackTrace(System.out); + }} }} }} """ |