mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-28 18:53:20 +02:00
Do not throw any exception.
This commit is contained in:
parent
3f5312a66b
commit
90c216400b
1 changed files with 107 additions and 103 deletions
|
@ -36,12 +36,16 @@ Java_org_eclipse_cdt_utils_pty_PTYInputStream_read0(JNIEnv * env,
|
||||||
status = -1;
|
status = -1;
|
||||||
} else if (status == -1) {
|
} else if (status == -1) {
|
||||||
/* Error, toss an exception */
|
/* Error, toss an exception */
|
||||||
|
/* Ignore the error for now, the debugger will attempt
|
||||||
|
* to close this multiple time. */
|
||||||
|
#if 0
|
||||||
jclass exception = (*env)->FindClass(env, "java/io/IOException");
|
jclass exception = (*env)->FindClass(env, "java/io/IOException");
|
||||||
if (exception == NULL) {
|
if (exception == NULL) {
|
||||||
/* Give up. */
|
/* Give up. */
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
(*env)->ThrowNew(env, exception, "read error");
|
(*env)->ThrowNew(env, exception, "read error");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|
Loading…
Add table
Reference in a new issue