RFR: 8329951: `var` emits deprecation warnings that do not point to the file or position [v4]
Archie Cobbs
acobbs at openjdk.org
Wed Jun 4 15:59:00 UTC 2025
On Wed, 4 Jun 2025 15:42:07 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:
> @archiecobbs thanks for fixing this! IIUC this means that `var` now has a start position, but this is still not setting and end position. Do you think it would it make sense to record both start and end positions for `var`?
I'm not sure (due to my own ignorance, not skepticism). How does the lack of ending position manifest? FWIW there appear to be lots of instances in the compiler where `make.at()` is used to create some AST node with a given start position, but where the end position is never being set. How is this case different? Etc.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23683#discussion_r2126945278
More information about the compiler-dev
mailing list