This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: how does the JLS deal with the >> ambiguity?
Eric Blake <ebb9@byu.net> writes:
> though it can parse it). Java does have advantages over C++ in that the
> contents of <foo<bar>> are more constrained (ie, an arithmetic expression
> never appears inside of a generic type name, so the presence of an
> arithmetic operator automatically means parsing the >> token as a shift
> operator instead of a double generic name closer).
Ah, I see. Yeah, that makes sense. Thanks!
- a