commit | f2f6f8b8d47733be0f291612730690b5ce379257 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Fri Sep 04 13:35:10 2009 -0700 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Sep 04 13:44:16 2009 -0700 |
tree | 69c19b3237f884633c02d72e6b8c6ca598814774 | |
parent | 3a4e4249032009b175ba6a3d0bcc682f97e5e650 [diff] |
Document that createSocketFileDescriptor throws an exception on failure. Change-Id: Ic002b4dc8c40d798316afbab7a14bd81593e2541
diff --git a/libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp b/libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp index c426a36..78ec2d0 100644 --- a/libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp +++ b/libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp
@@ -1631,8 +1631,10 @@ * * @param fileDescriptor the file descriptor to bind the socket to * @param type the socket type to create, e.g., SOCK_STREAM + * @throws SocketException an error occurred when creating the socket * - * @return the socket file descriptor, or -1 on failure + * @return the socket file descriptor. On failure, an exception is thrown and + * a negative value is returned. * */ static int createSocketFileDescriptor(JNIEnv* env, jobject fileDescriptor,