Print this page
Split |
Close |
Expand all |
Collapse all |
--- old/src/windows/native/java/net/Inet4AddressImpl.c
+++ new/src/windows/native/java/net/Inet4AddressImpl.c
1 1 /*
2 2 * Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 4 *
5 5 * This code is free software; you can redistribute it and/or modify it
6 6 * under the terms of the GNU General Public License version 2 only, as
7 7 * published by the Free Software Foundation. Sun designates this
8 8 * particular file as subject to the "Classpath" exception as provided
9 9 * by Sun in the LICENSE file that accompanied this code.
10 10 *
11 11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 14 * version 2 for more details (a copy is included in the LICENSE file that
15 15 * accompanied this code).
16 16 *
17 17 * You should have received a copy of the GNU General Public License version
18 18 * 2 along with this work; if not, write to the Free Software Foundation,
19 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 20 *
21 21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 22 * CA 95054 USA or visit www.sun.com if you need additional information or
23 23 * have any questions.
24 24 */
25 25
26 26 #include <windows.h>
27 27 #include <winsock2.h>
28 28 #include <ctype.h>
29 29 #include <stdio.h>
30 30 #include <stdlib.h>
31 31 #include <malloc.h>
32 32 #include <sys/types.h>
33 33 #include <process.h>
34 34
35 35 #include "java_net_InetAddress.h"
36 36 #include "java_net_Inet4AddressImpl.h"
37 37 #include "net_util.h"
38 38 #include "icmp.h"
39 39
40 40
41 41 /*
42 42 * Returns true if hostname is in dotted IP address format. Note that this
43 43 * function performs a syntax check only. For each octet it just checks that
44 44 * the octet is at most 3 digits.
45 45 */
46 46 jboolean isDottedIPAddress(const char *hostname, unsigned int *addrp) {
47 47 char *c = (char *)hostname;
48 48 int octets = 0;
49 49 unsigned int cur = 0;
50 50 int digit_cnt = 0;
51 51
52 52 while (*c) {
53 53 if (*c == '.') {
54 54 if (digit_cnt == 0) {
55 55 return JNI_FALSE;
56 56 } else {
57 57 if (octets < 4) {
58 58 addrp[octets++] = cur;
59 59 cur = 0;
60 60 digit_cnt = 0;
61 61 } else {
62 62 return JNI_FALSE;
63 63 }
64 64 }
65 65 c++;
66 66 continue;
67 67 }
68 68
69 69 if ((*c < '0') || (*c > '9')) {
70 70 return JNI_FALSE;
71 71 }
72 72
73 73 digit_cnt++;
74 74 if (digit_cnt > 3) {
75 75 return JNI_FALSE;
76 76 }
77 77
78 78 /* don't check if current octet > 255 */
79 79 cur = cur*10 + (*c - '0');
80 80
81 81 /* Move onto next character and check for EOF */
82 82 c++;
83 83 if (*c == '\0') {
84 84 if (octets < 4) {
85 85 addrp[octets++] = cur;
86 86 } else {
87 87 return JNI_FALSE;
88 88 }
89 89 }
90 90 }
91 91
92 92 return (jboolean)(octets == 4);
93 93 }
94 94
95 95 /*
96 96 * Inet4AddressImpl
97 97 */
98 98
99 99 /*
100 100 * Class: java_net_Inet4AddressImpl
101 101 * Method: getLocalHostName
102 102 * Signature: ()Ljava/lang/String;
103 103 */
↓ open down ↓ |
103 lines elided |
↑ open up ↑ |
104 104 JNIEXPORT jstring JNICALL
105 105 Java_java_net_Inet4AddressImpl_getLocalHostName (JNIEnv *env, jobject this) {
106 106 char hostname[256];
107 107
108 108 if (gethostname(hostname, sizeof hostname) == -1) {
109 109 strcpy(hostname, "localhost");
110 110 }
111 111 return JNU_NewStringPlatform(env, hostname);
112 112 }
113 113
114 -static jclass ni_iacls;
115 -static jclass ni_ia4cls;
116 -static jmethodID ni_ia4ctrID;
117 -static jfieldID ni_iaaddressID;
118 -static jfieldID ni_iahostID;
119 -static jfieldID ni_iafamilyID;
120 -static int initialized = 0;
121 -
122 114 /*
123 115 * Find an internet address for a given hostname. Not this this
124 116 * code only works for addresses of type INET. The translation
125 117 * of %d.%d.%d.%d to an address (int) occurs in java now, so the
126 118 * String "host" shouldn't be a %d.%d.%d.%d string. The only
127 119 * exception should be when any of the %d are out of range and
128 120 * we fallback to a lookup.
129 121 *
130 122 * Class: java_net_Inet4AddressImpl
131 123 * Method: lookupAllHostAddr
132 124 * Signature: (Ljava/lang/String;)[[B
133 125 *
134 126 * This is almost shared code
135 127 */
↓ open down ↓ |
4 lines elided |
↑ open up ↑ |
136 128
137 129 JNIEXPORT jobjectArray JNICALL
138 130 Java_java_net_Inet4AddressImpl_lookupAllHostAddr(JNIEnv *env, jobject this,
139 131 jstring host) {
140 132 const char *hostname;
141 133 struct hostent *hp;
142 134 unsigned int addr[4];
143 135
144 136 jobjectArray ret = NULL;
145 137
146 - if (!initialized) {
147 - ni_iacls = (*env)->FindClass(env, "java/net/InetAddress");
148 - ni_iacls = (*env)->NewGlobalRef(env, ni_iacls);
149 - ni_ia4cls = (*env)->FindClass(env, "java/net/Inet4Address");
150 - ni_ia4cls = (*env)->NewGlobalRef(env, ni_ia4cls);
151 - ni_ia4ctrID = (*env)->GetMethodID(env, ni_ia4cls, "<init>", "()V");
152 - ni_iaaddressID = (*env)->GetFieldID(env, ni_iacls, "address", "I");
153 - ni_iafamilyID = (*env)->GetFieldID(env, ni_iacls, "family", "I");
154 - ni_iahostID = (*env)->GetFieldID(env, ni_iacls, "hostName", "Ljava/lang/String;");
155 - initialized = 1;
156 - }
138 + init(env);
157 139
158 140 if (IS_NULL(host)) {
159 141 JNU_ThrowNullPointerException(env, "host argument");
160 142 return NULL;
161 143 }
162 144 hostname = JNU_GetStringPlatformChars(env, host, JNI_FALSE);
163 145 CHECK_NULL_RETURN(hostname, NULL);
164 146
165 147 /*
166 148 * The NT/2000 resolver tolerates a space in front of localhost. This
167 149 * is not consistent with other implementations of gethostbyname.
168 150 * In addition we must do a white space check on Solaris to avoid a
169 151 * bug whereby 0.0.0.0 is returned if any host name has a white space.
170 152 */
171 153 if (isspace(hostname[0])) {
172 154 JNU_ThrowByName(env, JNU_JAVANETPKG "UnknownHostException", hostname);
173 155 goto cleanupAndReturn;
174 156 }
175 157
176 158 /*
177 159 * If the format is x.x.x.x then don't use gethostbyname as Windows
178 160 * is unable to handle octets which are out of range.
179 161 */
180 162 if (isDottedIPAddress(hostname, &addr[0])) {
181 163 unsigned int address;
182 164 jobject iaObj;
183 165
184 166 /*
185 167 * Are any of the octets out of range?
186 168 */
187 169 if (addr[0] > 255 || addr[1] > 255 || addr[2] > 255 || addr[3] > 255) {
188 170 JNU_ThrowByName(env, JNU_JAVANETPKG "UnknownHostException", hostname);
189 171 goto cleanupAndReturn;
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
190 172 }
191 173
192 174 /*
193 175 * Return an byte array with the populated address.
194 176 */
195 177 address = (addr[3]<<24) & 0xff000000;
196 178 address |= (addr[2]<<16) & 0xff0000;
197 179 address |= (addr[1]<<8) & 0xff00;
198 180 address |= addr[0];
199 181
200 - ret = (*env)->NewObjectArray(env, 1, ni_iacls, NULL);
182 + ret = (*env)->NewObjectArray(env, 1, ia_class, NULL);
201 183
202 184 if (IS_NULL(ret)) {
203 185 goto cleanupAndReturn;
204 186 }
205 187
206 - iaObj = (*env)->NewObject(env, ni_ia4cls, ni_ia4ctrID);
188 + iaObj = (*env)->NewObject(env, ia4_class, ia4_ctrID);
207 189 if (IS_NULL(iaObj)) {
208 190 ret = NULL;
209 191 goto cleanupAndReturn;
210 192 }
211 - (*env)->SetIntField(env, iaObj, ni_iaaddressID,
193 + (*env)->SetIntField(env, iaObj, ia_addressID,
212 194 ntohl(address));
213 195 (*env)->SetObjectArrayElement(env, ret, 0, iaObj);
214 196 JNU_ReleaseStringPlatformChars(env, host, hostname);
215 197 return ret;
216 198 }
217 199
218 200 /*
219 201 * Perform the lookup
220 202 */
221 203 if ((hp = gethostbyname((char*)hostname)) != NULL) {
222 204 struct in_addr **addrp = (struct in_addr **) hp->h_addr_list;
223 205 int len = sizeof(struct in_addr);
224 206 int i = 0;
225 207
226 208 while (*addrp != (struct in_addr *) 0) {
227 209 i++;
228 210 addrp++;
229 211 }
230 212
231 - ret = (*env)->NewObjectArray(env, i, ni_iacls, NULL);
213 + ret = (*env)->NewObjectArray(env, i, ia_class, NULL);
232 214
233 215 if (IS_NULL(ret)) {
234 216 goto cleanupAndReturn;
235 217 }
236 218
237 219 addrp = (struct in_addr **) hp->h_addr_list;
238 220 i = 0;
239 221 while (*addrp != (struct in_addr *) 0) {
240 - jobject iaObj = (*env)->NewObject(env, ni_ia4cls, ni_ia4ctrID);
222 + jobject iaObj = (*env)->NewObject(env, ia4_class, ia4_ctrID);
241 223 if (IS_NULL(iaObj)) {
242 224 ret = NULL;
243 225 goto cleanupAndReturn;
244 226 }
245 - (*env)->SetIntField(env, iaObj, ni_iaaddressID,
227 + (*env)->SetIntField(env, iaObj, ia_addressID,
246 228 ntohl((*addrp)->s_addr));
247 - (*env)->SetObjectField(env, iaObj, ni_iahostID, host);
229 + (*env)->SetObjectField(env, iaObj, ia_hostNameID, host);
248 230 (*env)->SetObjectArrayElement(env, ret, i, iaObj);
249 231 addrp++;
250 232 i++;
251 233 }
252 234 } else {
253 235 JNU_ThrowByName(env, JNU_JAVANETPKG "UnknownHostException", hostname);
254 236 }
255 237
256 238 cleanupAndReturn:
257 239 JNU_ReleaseStringPlatformChars(env, host, hostname);
258 240 return ret;
259 241 }
260 242
261 243 /*
262 244 * Class: java_net_Inet4AddressImpl
263 245 * Method: getHostByAddr
264 246 * Signature: (I)Ljava/lang/String;
265 247 */
266 248 JNIEXPORT jstring JNICALL
267 249 Java_java_net_Inet4AddressImpl_getHostByAddr(JNIEnv *env, jobject this,
268 250 jbyteArray addrArray) {
269 251 struct hostent *hp;
270 252 jbyte caddr[4];
271 253 jint addr;
272 254 (*env)->GetByteArrayRegion(env, addrArray, 0, 4, caddr);
273 255 addr = ((caddr[0]<<24) & 0xff000000);
274 256 addr |= ((caddr[1] <<16) & 0xff0000);
275 257 addr |= ((caddr[2] <<8) & 0xff00);
276 258 addr |= (caddr[3] & 0xff);
277 259 addr = htonl(addr);
278 260
279 261 hp = gethostbyaddr((char *)&addr, sizeof(addr), AF_INET);
280 262 if (hp == NULL) {
281 263 JNU_ThrowByName(env, JNU_JAVANETPKG "UnknownHostException", 0);
282 264 return NULL;
283 265 }
284 266 if (hp->h_name == NULL) { /* Deal with bug in Windows XP */
285 267 JNU_ThrowByName(env, JNU_JAVANETPKG "UnknownHostException", 0);
286 268 return NULL;
287 269 }
288 270 return JNU_NewStringPlatform(env, hp->h_name);
289 271 }
290 272
291 273
292 274 /**
293 275 * ping implementation.
294 276 * Send a ICMP_ECHO_REQUEST packet every second until either the timeout
295 277 * expires or a answer is received.
296 278 * Returns true is an ECHO_REPLY is received, otherwise, false.
297 279 */
298 280 static jboolean
299 281 ping4(JNIEnv *env, jint fd, struct sockaddr_in* him, jint timeout,
300 282 struct sockaddr_in* netif, jint ttl) {
301 283 jint size;
302 284 jint n, len, hlen1, icmplen;
303 285 char sendbuf[1500];
304 286 char recvbuf[1500];
305 287 struct icmp *icmp;
306 288 struct ip *ip;
307 289 WSAEVENT hEvent;
308 290 struct sockaddr sa_recv;
309 291 jint tmout2;
310 292 u_short pid, seq;
311 293 int read_rv = 0;
312 294
313 295 /* Initialize the sequence number to a suitable random number and
314 296 shift right one place to allow sufficient room for increamenting. */
315 297 seq = ((unsigned short)rand()) >> 1;
316 298
317 299 /* icmp_id is a 16 bit data type, therefore down cast the pid */
318 300 pid = (u_short) _getpid();
319 301 size = 60*1024;
320 302 setsockopt(fd, SOL_SOCKET, SO_RCVBUF, (const char *) &size, sizeof(size));
321 303 /**
322 304 * A TTL was specified, let's set the socket option.
323 305 */
324 306 if (ttl > 0) {
325 307 setsockopt(fd, IPPROTO_IP, IP_TTL, (const char *) &ttl, sizeof(ttl));
326 308 }
327 309
328 310 /**
329 311 * A network interface was specified, let's bind to it.
330 312 */
331 313 if (netif != NULL) {
332 314 if (bind(fd, (struct sockaddr*)netif, sizeof(struct sockaddr_in)) < 0) {
333 315 NET_ThrowNew(env, WSAGetLastError(), "Can't bind socket");
334 316 closesocket(fd);
335 317 return JNI_FALSE;
336 318 }
337 319 }
338 320
339 321 /**
340 322 * Let's make the socket non blocking
341 323 */
342 324 hEvent = WSACreateEvent();
343 325 WSAEventSelect(fd, hEvent, FD_READ|FD_CONNECT|FD_CLOSE);
344 326
345 327 /**
346 328 * send 1 ICMP REQUEST every second until either we get a valid reply
347 329 * or the timeout expired.
348 330 */
349 331 do {
350 332 /**
351 333 * construct the ICMP header
352 334 */
353 335 memset(sendbuf, 0, 1500);
354 336 icmp = (struct icmp *) sendbuf;
355 337 icmp->icmp_type = ICMP_ECHO;
356 338 icmp->icmp_code = 0;
357 339 icmp->icmp_id = htons(pid);
358 340 icmp->icmp_seq = htons(seq);
359 341 /**
360 342 * checksum has to be set to zero before we can calculate the
361 343 * real checksum!
362 344 */
363 345 icmp->icmp_cksum = 0;
364 346 icmp->icmp_cksum = in_cksum((u_short *)icmp, 64);
365 347 /**
366 348 * Ping!
367 349 */
368 350 n = sendto(fd, sendbuf, 64, 0, (struct sockaddr *)him,
369 351 sizeof(struct sockaddr));
370 352 if (n < 0 && WSAGetLastError() != WSAEWOULDBLOCK) {
371 353 NET_ThrowNew(env, WSAGetLastError(), "Can't send ICMP packet");
372 354 closesocket(fd);
373 355 WSACloseEvent(hEvent);
374 356 return JNI_FALSE;
375 357 }
376 358
377 359 /*
378 360 * wait for 1 second at most
379 361 */
380 362 tmout2 = timeout > 1000 ? 1000 : timeout;
381 363 do {
382 364 tmout2 = NET_Wait(env, fd, NET_WAIT_READ, tmout2);
383 365 if (tmout2 >= 0) {
384 366 len = sizeof(sa_recv);
385 367 n = recvfrom(fd, recvbuf, sizeof(recvbuf), 0, &sa_recv, &len);
386 368 ip = (struct ip*) recvbuf;
387 369 hlen1 = (ip->ip_hl) << 2;
388 370 icmp = (struct icmp *) (recvbuf + hlen1);
389 371 icmplen = n - hlen1;
390 372 /**
391 373 * Is that a proper ICMP reply?
392 374 */
393 375 if (icmplen >= 8 && icmp->icmp_type == ICMP_ECHOREPLY &&
394 376 (ntohs(icmp->icmp_seq) == seq) && (ntohs(icmp->icmp_id) == pid)) {
395 377 closesocket(fd);
396 378 WSACloseEvent(hEvent);
397 379 return JNI_TRUE;
398 380 }
399 381 }
400 382 } while (tmout2 > 0);
401 383 timeout -= 1000;
402 384 seq++;
403 385 } while (timeout > 0);
404 386 closesocket(fd);
405 387 WSACloseEvent(hEvent);
406 388 return JNI_FALSE;
407 389 }
408 390
409 391 /*
410 392 * Class: java_net_Inet4AddressImpl
411 393 * Method: isReachable0
412 394 * Signature: ([bI[bI)Z
413 395 */
414 396 JNIEXPORT jboolean JNICALL
415 397 Java_java_net_Inet4AddressImpl_isReachable0(JNIEnv *env, jobject this,
416 398 jbyteArray addrArray,
417 399 jint timeout,
418 400 jbyteArray ifArray,
419 401 jint ttl) {
420 402 jint addr;
421 403 jbyte caddr[4];
422 404 jint fd;
423 405 struct sockaddr_in him;
424 406 struct sockaddr_in* netif = NULL;
425 407 struct sockaddr_in inf;
426 408 int len = 0;
427 409 WSAEVENT hEvent;
428 410 int connect_rv = -1;
429 411 int sz;
430 412
431 413 /**
432 414 * Convert IP address from byte array to integer
433 415 */
434 416 sz = (*env)->GetArrayLength(env, addrArray);
435 417 if (sz != 4) {
436 418 return JNI_FALSE;
437 419 }
438 420 memset((char *) &him, 0, sizeof(him));
439 421 memset((char *) caddr, 0, sizeof(caddr));
440 422 (*env)->GetByteArrayRegion(env, addrArray, 0, 4, caddr);
441 423 addr = ((caddr[0]<<24) & 0xff000000);
442 424 addr |= ((caddr[1] <<16) & 0xff0000);
443 425 addr |= ((caddr[2] <<8) & 0xff00);
444 426 addr |= (caddr[3] & 0xff);
445 427 addr = htonl(addr);
446 428 /**
447 429 * Socket address
448 430 */
449 431 him.sin_addr.s_addr = addr;
450 432 him.sin_family = AF_INET;
451 433 len = sizeof(him);
452 434
453 435 /**
454 436 * If a network interface was specified, let's convert its address
455 437 * as well.
456 438 */
457 439 if (!(IS_NULL(ifArray))) {
458 440 memset((char *) caddr, 0, sizeof(caddr));
459 441 (*env)->GetByteArrayRegion(env, ifArray, 0, 4, caddr);
460 442 addr = ((caddr[0]<<24) & 0xff000000);
461 443 addr |= ((caddr[1] <<16) & 0xff0000);
462 444 addr |= ((caddr[2] <<8) & 0xff00);
463 445 addr |= (caddr[3] & 0xff);
464 446 addr = htonl(addr);
465 447 inf.sin_addr.s_addr = addr;
466 448 inf.sin_family = AF_INET;
467 449 inf.sin_port = 0;
468 450 netif = &inf;
469 451 }
470 452
471 453 #if 0
472 454 /*
473 455 * Windows implementation of ICMP & RAW sockets is too unreliable for now.
474 456 * Therefore it's best not to try it at all and rely only on TCP
475 457 * We may revisit and enable this code in the future.
476 458 */
477 459
478 460 /*
479 461 * Let's try to create a RAW socket to send ICMP packets
480 462 * This usually requires "root" privileges, so it's likely to fail.
481 463 */
482 464 fd = NET_Socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
483 465 if (fd != -1) {
484 466 /*
485 467 * It didn't fail, so we can use ICMP_ECHO requests.
486 468 */
487 469 return ping4(env, fd, &him, timeout, netif, ttl);
488 470 }
489 471 #endif
490 472
491 473 /*
492 474 * Can't create a raw socket, so let's try a TCP socket
493 475 */
494 476 fd = NET_Socket(AF_INET, SOCK_STREAM, 0);
495 477 if (fd == JVM_IO_ERR) {
496 478 /* note: if you run out of fds, you may not be able to load
497 479 * the exception class, and get a NoClassDefFoundError
498 480 * instead.
499 481 */
500 482 NET_ThrowNew(env, WSAGetLastError(), "Can't create socket");
501 483 return JNI_FALSE;
502 484 }
503 485 if (ttl > 0) {
504 486 setsockopt(fd, IPPROTO_IP, IP_TTL, (const char *)&ttl, sizeof(ttl));
505 487 }
506 488 /*
507 489 * A network interface was specified, so let's bind to it.
508 490 */
509 491 if (netif != NULL) {
510 492 if (bind(fd, (struct sockaddr*)netif, sizeof(struct sockaddr_in)) < 0) {
511 493 NET_ThrowNew(env, WSAGetLastError(), "Can't bind socket");
512 494 closesocket(fd);
513 495 return JNI_FALSE;
514 496 }
515 497 }
516 498
517 499 /*
518 500 * Make the socket non blocking so we can use select/poll.
519 501 */
520 502 hEvent = WSACreateEvent();
521 503 WSAEventSelect(fd, hEvent, FD_READ|FD_CONNECT|FD_CLOSE);
522 504
523 505 /* no need to use NET_Connect as non-blocking */
524 506 him.sin_port = htons(7); /* Echo */
525 507 connect_rv = connect(fd, (struct sockaddr *)&him, len);
526 508
527 509 /**
528 510 * connection established or refused immediately, either way it means
529 511 * we were able to reach the host!
530 512 */
531 513 if (connect_rv == 0 || WSAGetLastError() == WSAECONNREFUSED) {
532 514 WSACloseEvent(hEvent);
533 515 closesocket(fd);
534 516 return JNI_TRUE;
535 517 } else {
536 518 int optlen;
537 519
538 520 switch (WSAGetLastError()) {
539 521 case WSAEHOSTUNREACH: /* Host Unreachable */
540 522 case WSAENETUNREACH: /* Network Unreachable */
541 523 case WSAENETDOWN: /* Network is down */
542 524 case WSAEPFNOSUPPORT: /* Protocol Family unsupported */
543 525 WSACloseEvent(hEvent);
544 526 closesocket(fd);
545 527 return JNI_FALSE;
546 528 }
547 529
548 530 if (WSAGetLastError() != WSAEWOULDBLOCK) {
549 531 NET_ThrowByNameWithLastError(env, JNU_JAVANETPKG "ConnectException",
550 532 "connect failed");
551 533 WSACloseEvent(hEvent);
552 534 closesocket(fd);
553 535 return JNI_FALSE;
554 536 }
555 537
556 538 timeout = NET_Wait(env, fd, NET_WAIT_CONNECT, timeout);
557 539
558 540 /* has connection been established */
559 541
560 542 if (timeout >= 0) {
561 543 optlen = sizeof(connect_rv);
562 544 if (JVM_GetSockOpt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv,
563 545 &optlen) <0) {
564 546 connect_rv = WSAGetLastError();
565 547 }
566 548
567 549 if (connect_rv == 0 || connect_rv == WSAECONNREFUSED) {
568 550 WSACloseEvent(hEvent);
569 551 closesocket(fd);
570 552 return JNI_TRUE;
571 553 }
572 554 }
573 555 }
574 556 WSACloseEvent(hEvent);
575 557 closesocket(fd);
576 558 return JNI_FALSE;
577 559 }
↓ open down ↓ |
320 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX