Fix JimplePrinter escaping to work like (old) Soot#647
Fix JimplePrinter escaping to work like (old) Soot#647
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