-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Fix JimplePrinter escaping to work like (old) Soot #647
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #647 +/- ##
=============================================
+ Coverage 63.86% 64.47% +0.61%
+ Complexity 3405 3311 -94
=============================================
Files 314 311 -3
Lines 15097 14773 -324
Branches 2566 2454 -112
=============================================
- Hits 9641 9525 -116
+ Misses 4549 4363 -186
+ Partials 907 885 -22 ☔ View full report in Codecov by Sentry. |
Old Soot escaped keywords with single quotes. |
sootup.core/src/main/java/sootup/core/util/printer/LegacyJimplePrinter.java
Outdated
Show resolved
Hide resolved
sootup.java.core/src/test/java/sootup/java/core/printer/LegacyJimplePrinterTest.java
Outdated
Show resolved
Hide resolved
did it? the StringUtil.getQuotedStringOf https://github.com/soot-oss/soot/blob/1ad74494974165e8b5f2286c90f218a00eadc243/src/main/java/soot/util/StringTools.java#L60 did add double quotes? |
… property - escape when it occurs - which will only depending on the os.
Yes, it does. I tested it with the old Soot. It is escaped to 'from'. |
unwindowsing the test i.e. remove \r from \n
# Conflicts: # sootup.java.core/src/test/java/sootup/java/core/printer/LegacyJimplePrinterTest.java # sootup.jimple.parser/src/main/java/sootup/jimple/parser/JimpleAnalysisInputLocation.java
closes #452, #622