Bug 799015 - Use correct syntax for findClass() in JNI. r=wesj a=bajaj
authorBrian Nicholson <bnicholson@mozilla.com>
Mon, 08 Oct 2012 10:23:27 -0700
changeset 116575 630fe407ed43a1b70e4cc56913600a4698ca2456
parent 116574 1989adaaf7b4cc38b5e9314e0141e9119792f295
child 116576 31ecdc024188a380d01cf6472e35286e6b09511c
push id239
push userakeybl@mozilla.com
push dateThu, 03 Jan 2013 21:54:43 +0000
treeherdermozilla-release@3a7b66445659 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswesj, bajaj
bugs799015
milestone18.0a2
Bug 799015 - Use correct syntax for findClass() in JNI. r=wesj a=bajaj
mobile/android/chrome/content/browser.js
mobile/android/modules/JNI.jsm
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -6639,17 +6639,17 @@ var WebappsUI = {
     });
   },
 
   get iconSize() {
     let iconSize = 64;
     try {
       Cu.import("resource://gre/modules/JNI.jsm");
       let jni = new JNI();
-      let cls = jni.findClass("org.mozilla.gecko.GeckoAppShell");
+      let cls = jni.findClass("org/mozilla/gecko/GeckoAppShell");
       let method = jni.getStaticMethodID(cls, "getPreferredIconSize", "()I");
       iconSize = jni.callStaticIntMethod(cls, method);
       jni.close();
     } catch(ex) {
       console.log(ex);
     }
 
     delete this.iconSize;
--- a/mobile/android/modules/JNI.jsm
+++ b/mobile/android/modules/JNI.jsm
@@ -1,13 +1,13 @@
 /* Very basic JNI support for JS
  *
  * Example Usage:
  *   let jni = new JNI();
- *   cls = jni.findClass("org.mozilla.gecko.GeckoAppShell");
+ *   cls = jni.findClass("org/mozilla/gecko/GeckoAppShell");
  *   method = jni.getStaticMethodID(cls, "getPreferredIconSize", "(I)I");
  *
  *   let val = jni.callStaticIntMethod(cls, method, 3);
  *   // close the jni library when you are done
  *   jni.close();
  */
 let EXPORTED_SYMBOLS = ["JNI"];