RFR: 8329951: `var` emits deprecation warnings that do not point to the file or position [v2]
Archie Cobbs
acobbs at openjdk.org
Mon Jun 2 23:28:41 UTC 2025
On Mon, 2 Jun 2025 23:11:32 GMT, Vicente Romero <vromero at openjdk.org> wrote:
>> Archie Cobbs has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:
>>
>> - Merge branch 'master' into JDK-8329951
>> - Fix bug where some warnings didn't have a source file position.
>
> test/langtools/tools/javac/tree/VarWarnPosition.java line 21:
>
>> 19:
>> 20: // Test 2
>> 21: Consumer<Depr> c = d -> { };
>
> would it makes sense to add another test like this one?
>
> Consumer<Depr> c2 = (var d) -> { };
Yes - thanks. Added in 5b79fb2b3e3.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23683#discussion_r2122326354
More information about the compiler-dev
mailing list