-
-
Notifications
You must be signed in to change notification settings - Fork 110
[Bug]: Wrong Jimple generation #987
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
For cases like the following code the Jimple generation is wrong, as it tries removes the conditional expression and just appends "c" to the string:
void method (boolean condition) {
String s = "a" + (condition ? "b" : "c")
}
This only happen for code compiled with JDK 8 or earlier. It will probably also happen for other conditional expressions.
Please see https://github.com/soot-oss/SootUp/tree/fix/conditionalStringConcat for a test case.
Version
Latest develop branch
Relevant log output
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working