Skip to content

Fix VPA crash on defaulted direct supertypes#1810

Open
aosen-xiong wants to merge 4 commits into
eisop:masterfrom
aosen-xiong:vpa-crash
Open

Fix VPA crash on defaulted direct supertypes#1810
aosen-xiong wants to merge 4 commits into
eisop:masterfrom
aosen-xiong:vpa-crash

Conversation

@aosen-xiong

@aosen-xiong aosen-xiong commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Fix #786 by applying computed/default annotations to direct supertypes before viewpoint adaptation.

Direct supertype computation substitutes type variables into supertypes, such as turning Box into Box.

Previously, viewpoint adaptation ran before those substituted supertypes had their default qualifiers applied, so VPA could see an unannotated type argument and crash.

This changes the ordering so direct supertypes are defaulted first, then viewpoint-adapted.

Copilot AI review requested due to automatic review settings June 16, 2026 06:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Unexpected null argument when doing VPA

3 participants