Index: base/android/jni_generator/jni_generator.py |
diff --git a/base/android/jni_generator/jni_generator.py b/base/android/jni_generator/jni_generator.py |
index 53de36569b8b4c25a6a6935f81b3426f68a7a762..6e39c13d4b0631b90cc300fa26f8a324d8085283 100755 |
--- a/base/android/jni_generator/jni_generator.py |
+++ b/base/android/jni_generator/jni_generator.py |
@@ -209,7 +209,11 @@ class JniParams(object): |
@staticmethod |
def ParseJavaPSignature(signature_line): |
prefix = 'Signature: ' |
- return '"%s"' % signature_line[signature_line.index(prefix) + len(prefix):] |
+ index = signature_line.find(prefix) |
+ if index == -1: |
+ prefix = 'descriptor: ' |
+ index = signature_line.index(prefix) |
+ return '"%s"' % signature_line[index + len(prefix):] |
@staticmethod |
def JavaToJni(param): |