Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method names should not be created via VariableRenamer #3231

Merged
merged 2 commits into from Nov 2, 2023
Merged

Conversation

unp1
Copy link
Member

@unp1 unp1 commented Jul 26, 2023

This PR fixes #1717

@unp1 unp1 requested a review from wadoon July 26, 2023 19:12
@unp1 unp1 changed the title method names should not be created via VariableRenamer Method names should not be created via VariableRenamer Jul 26, 2023
@unp1 unp1 added the 🐞 Bug label Jul 26, 2023
@unp1 unp1 marked this pull request as draft July 26, 2023 19:59
@unp1
Copy link
Member Author

unp1 commented Jul 26, 2023

Converted to draft. As I am not sure it won't have side-effects when parsing interactively. I have an idea for a safer change.

Base automatically changed from KeY-2.12.0 to main August 18, 2023 14:30
@unp1 unp1 marked this pull request as ready for review October 26, 2023 17:45
@unp1
Copy link
Member Author

unp1 commented Oct 26, 2023

Hi,

this PR fixes the issue for method names and should be safe.

We should think about using a different separator for variable names (i.e. not '_' which is not allowed as Java Identifier, e.g. §. Otherwise we need to store leading zeros in the index names. But that is for a different PR.

Best regards,
Richard

@unp1 unp1 force-pushed the fixIssue1717 branch 2 times, most recently from 78de5e0 to f79fed5 Compare October 26, 2023 18:10
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Merging #3231 (6cbcebe) into main (6a06061) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #3231      +/-   ##
============================================
+ Coverage     37.84%   37.85%   +0.01%     
- Complexity    16883    16892       +9     
============================================
  Files          2052     2052              
  Lines        125439   125443       +4     
  Branches      21215    21216       +1     
============================================
+ Hits          47469    47487      +18     
+ Misses        72117    72104      -13     
+ Partials       5853     5852       -1     
Files Coverage Δ
...ava/de/uka/ilkd/key/java/Recoder2KeYConverter.java 72.46% <100.00%> (+0.14%) ⬆️
.../src/main/java/de/uka/ilkd/key/rule/TacletApp.java 69.38% <100.00%> (ø)

... and 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@unp1 unp1 force-pushed the fixIssue1717 branch 2 times, most recently from ac5885c to 7924752 Compare October 27, 2023 03:48
@wadoon wadoon enabled auto-merge November 2, 2023 12:07
@wadoon wadoon disabled auto-merge November 2, 2023 12:07
unp1 added a commit that referenced this pull request Nov 2, 2023
@unp1 unp1 enabled auto-merge November 2, 2023 15:32
@unp1 unp1 added this pull request to the merge queue Nov 2, 2023
Merged via the queue into main with commit c58894f Nov 2, 2023
14 checks passed
@unp1 unp1 deleted the fixIssue1717 branch November 2, 2023 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't parse java method that contains _0
3 participants