A question regarding handling consecutive '>' characters in "3.2. Lexical Translations"
Javran Cheng
javran.c at gmail.com
Wed Mar 17 09:20:23 UTC 2021
Hello Java SE Spec authors,
I'm recently reading Java SE 16 spec (this is also present in many other
recent versions) and there is one part in "3.2. Lexical Translations" that
I would want some clarification:
> ... There is one exception: if lexical translation occurs in a type
context (§4.11) and the input stream has two or more consecutive >
characters ...
Here I want to know how can I tell whether it is in a type context when the
lexical analysis is not done - does this sentence just want to make sure
readers are aware of this ambiguity when it comes to consecutive >
characters (so how exactly this is done is up to implementor) or is there
somewhere explained in the spec regarding how to tell a type context during
lexical analysis?
Thanks!
Javran (Fang) Cheng
More information about the jls-jvms-spec-comments
mailing list