Bug 1302189 - [2.3] Prevent ProGuard from optimizing out native resource references. r=kats
authorEugen Sawin <esawin@mozilla.com>
Wed, 14 Sep 2016 20:54:15 +0200
changeset 357581 0e08d54ad9f6177fc90ae7e215840b75ea59c2ee
parent 357580 df435262531107c70b2c990d56a9899b00f30876
child 357582 48cca0d90707e725f4fd89d835cf18783cdee0bb
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1302189
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1302189 - [2.3] Prevent ProGuard from optimizing out native resource references. r=kats
mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/NativeZip.java
--- a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/NativeZip.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/NativeZip.java
@@ -12,16 +12,17 @@ import java.nio.ByteBuffer;
 import java.util.zip.Inflater;
 import java.util.zip.InflaterInputStream;
 
 public class NativeZip implements NativeReference {
     private static final int DEFLATE = 8;
     private static final int STORE = 0;
 
     private volatile long mObj;
+    @JNITarget
     private InputStream mInput;
 
     public NativeZip(String path) {
         mObj = getZip(path);
     }
 
     public NativeZip(InputStream input) {
         if (!(input instanceof ByteBufferInputStream)) {