Integrated: 8345474: Translation for instanceof is not triggered when patterns are not used in the compilation unit
Aggelos Biboudis
abimpoudis at openjdk.org
Wed Dec 4 14:35:46 UTC 2024
On Wed, 4 Dec 2024 10:50:05 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> Our tests for #21539 covered the case of using `instanceof` as both a type comparison operator and a pattern matching operator in a single compilation unit. That concealed the fact that the translation is getting triggered only when the compilation unit `hasPatterns`. This was evident/reproducible also by experimentation using jshell. This PR addresses this issue.
This pull request has now been integrated.
Changeset: 6c1ed0bb
Author: Aggelos Biboudis <abimpoudis at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/6c1ed0bb6912d8085b98f50b7bdbb467369f3992
Stats: 57 lines in 2 files changed: 57 ins; 0 del; 0 mod
8345474: Translation for instanceof is not triggered when patterns are not used in the compilation unit
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.org/jdk/pull/22541
More information about the compiler-dev
mailing list