[code-reflection] RFR: Update the model of pattern matching when pattern variable identifier is underscore [v6]

Paul Sandoz psandoz at openjdk.org
Thu Sep 12 16:20:20 UTC 2024


On Thu, 12 Sep 2024 07:00:47 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:

>> Update the generated code model of pattern matching when pattern variable identifier is "_"
>
> Mourad Abbay has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update the result type of TypePatternOp

src/java.base/share/classes/java/lang/reflect/code/op/CoreOp.java line 2171:

> 2169:             super(NAME, List.of(init));
> 2170: 
> 2171:             this.varName = varName == null || varName.isEmpty() ? null : varName;

Was there is a reason why you check for an empty string?

-------------

PR Review Comment: https://git.openjdk.org/babylon/pull/227#discussion_r1757192828


More information about the babylon-dev mailing list