equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
53 static jfieldID jzfileID; |
53 static jfieldID jzfileID; |
54 |
54 |
55 static int OPEN_READ = java_util_zip_ZipFile_OPEN_READ; |
55 static int OPEN_READ = java_util_zip_ZipFile_OPEN_READ; |
56 static int OPEN_DELETE = java_util_zip_ZipFile_OPEN_DELETE; |
56 static int OPEN_DELETE = java_util_zip_ZipFile_OPEN_DELETE; |
57 |
57 |
|
58 |
|
59 /* |
|
60 * Declare library specific JNI_Onload entry if static build |
|
61 */ |
|
62 DEF_STATIC_JNI_OnLoad |
|
63 |
58 JNIEXPORT void JNICALL |
64 JNIEXPORT void JNICALL |
59 Java_java_util_zip_ZipFile_initIDs(JNIEnv *env, jclass cls) |
65 Java_java_util_zip_ZipFile_initIDs(JNIEnv *env, jclass cls) |
60 { |
66 { |
61 jzfileID = (*env)->GetFieldID(env, cls, "jzfile", "J"); |
67 jzfileID = (*env)->GetFieldID(env, cls, "jzfile", "J"); |
62 assert(jzfileID != 0); |
68 assert(jzfileID != 0); |