This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: java.net patch


>>>>> "Michael" == Michael Koch <konqueror@gmx.de> writes:

Michael> Please review this patch.

+    if (tc < 0 || tc > 255) throw new IllegalArgumentException();

The `throw' needs to go on its own line.

+        throw new java::lang::InternalError (
+          JvNewStringUTF ("SO_BROADCAST not valid for TCP"));

In other places we throw SocketException for this sort of thing.
Which do you think is more correct?  (Or, what does Sun do?)
I think we should at least be internally consistent here.

+        return new java::lang::Boolean ((__java_boolean)val);

Use `jboolean', not `__java_boolean'.


Other than these the patch looks fine.  Please check it in once these
are fixed.  Thanks!

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]