Skip to content

Improve behavior in case of not found methods#3806

Merged
unp1 merged 2 commits intomainfrom
fixMethodTypeResolution
Apr 17, 2026
Merged

Improve behavior in case of not found methods#3806
unp1 merged 2 commits intomainfrom
fixMethodTypeResolution

Conversation

@unp1
Copy link
Copy Markdown
Member

@unp1 unp1 commented Apr 17, 2026

Intended Change

When resolving a method call of an unknown method, the type resolution returned the container type as result type of the method if the method was not found. This led to not understandable error messages later on.

This fix now throws an exception informing the user that a method call could not be resolved.

Type of pull request

  • Bug fix (non-breaking change which fixes an issue)

Ensuring quality

  • I have tested the feature as follows: standard KeY tests

Additional information and contact(s)

The contributions within this pull request are licensed under GPLv2 (only) for inclusion in KeY.

@unp1 unp1 added this to the v3.0.0 milestone Apr 17, 2026
@unp1 unp1 added 🐞 Bug Error Reporting Missing file/position info for parse errors, uncaught errors, wrong/unclear messages, ... labels Apr 17, 2026
@unp1 unp1 self-assigned this Apr 17, 2026
@unp1 unp1 enabled auto-merge April 17, 2026 08:27
@unp1 unp1 added this pull request to the merge queue Apr 17, 2026
Merged via the queue into main with commit 8fc6969 Apr 17, 2026
36 checks passed
@unp1 unp1 deleted the fixMethodTypeResolution branch April 17, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Error Reporting Missing file/position info for parse errors, uncaught errors, wrong/unclear messages, ... 🐞 Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants