[PATCH] java.util.StringTokenizer assumes order of parameter evaluation
Andrew Haley
aph@redhat.com
Wed Oct 16 02:31:00 GMT 2002
Ranjit Mathew writes:
> Sorry guys, but I just referred to the JLS (section 15.12.4.2,
> "Evaluate Arguments"):
>
> http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#45449
>
> and I quote:
>
> "The argument expressions are evaluated in order, from left to right..."
>
> Therefore, the coder for StringTokenizer *can* assume the
> order of evaluation - there must be some other problem that
> I need to figure out.
>
> BTW, does GCJ guarantee this order at all times?
Yes.
Andrew.
More information about the Java-patches
mailing list