Skip to content

Add downcast to CF#213

Closed
AndrewShf wants to merge 15 commits intoopprop:masterfrom
AndrewShf:add_down_incomparable_casts
Closed

Add downcast to CF#213
AndrewShf wants to merge 15 commits intoopprop:masterfrom
AndrewShf:add_down_incomparable_casts

Conversation

@AndrewShf
Copy link
Copy Markdown
Member

@AndrewShf AndrewShf commented Jun 14, 2022

Enumerate all the conditions:
Screen Shot 2022-09-12 at 11 06 43 AM

Main logic:

Screen Shot 2022-08-07 at 9 19 44 PM

method isUpcast(...) logic:

Screen Shot 2022-08-07 at 9 35 14 PM

isSafeDowncast logic:

Screen Shot 2022-08-07 at 9 41 45 PM

isSafeIncomparableCast() logic:
Screen Shot 2022-08-07 at 9 42 43 PM

Comment thread framework/src/main/java/org/checkerframework/common/basetype/BaseTypeVisitor.java Outdated
Comment thread checker/tests/nullness/java8inference/Issue1032.java
Comment thread checker/tests/nullness/CastsNullness.java Outdated
Comment thread checker/tests/nullness-checkcastelementtype/Issue1315.java Outdated
Comment thread framework/src/main/java/org/checkerframework/common/basetype/BaseTypeVisitor.java Outdated
@AndrewShf
Copy link
Copy Markdown
Member Author

@wmdietl Hi Prof, this PR is ready for review.

@AndrewShf
Copy link
Copy Markdown
Member Author

AndrewShf commented Sep 21, 2022

Reopened this PR in eisop repo eisop#337

@AndrewShf AndrewShf closed this Sep 21, 2022
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