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 d57662e44ec454a610ed35747df42e19fc2f09fd..2c6394a55b827e9b81e5ac689211ea9372beaf9c 100755 |
--- a/base/android/jni_generator/jni_generator.py |
+++ b/base/android/jni_generator/jni_generator.py |
@@ -423,8 +423,9 @@ class JNIFromJavaP(object): |
def __init__(self, contents, namespace): |
self.contents = contents |
self.namespace = namespace |
- self.fully_qualified_class = re.match('.*?class (?P<class_name>.*?) ', |
- contents[1]).group('class_name') |
+ self.fully_qualified_class = re.match( |
+ '.*?(class|interface) (?P<class_name>.*?)( |{)', |
+ contents[1]).group('class_name') |
self.fully_qualified_class = self.fully_qualified_class.replace('.', '/') |
JniParams.SetFullyQualifiedClass(self.fully_qualified_class) |
self.java_class_name = self.fully_qualified_class.split('/')[-1] |