Skip to content

Fix flag wrapping for getInstalledPackagesReflect#613

Open
JingMatrix wants to merge 1 commit intomasterfrom
flags
Open

Fix flag wrapping for getInstalledPackagesReflect#613
JingMatrix wants to merge 1 commit intomasterfrom
flags

Conversation

@JingMatrix
Copy link
Copy Markdown
Owner

@JingMatrix JingMatrix commented Mar 30, 2026

According to the Java Language Specification JLS §15.25.2:

If one of the second and third operands is of primitive type $T$, and the type of the other is the result of applying binary numeric promotion to $T$, then the type of the conditional expression is that promoted type.

This fixes the bug introduced in #603.

According to the Java Language Specification (JLS §15.25.2)[https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.25.2]:

> If one of the second and third operands is of primitive type $T$, and the type of the other is the result of applying binary numeric promotion to $T$, then the type of the conditional expression is that promoted type.

This fixes the bug introduced in #603.
@JingMatrix JingMatrix marked this pull request as ready for review March 30, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant