You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right-shift (>>) and Unsigned Right-shift (>>>) in the source file are replaced with greater-than sign (>) unexpectedly in original file (the file in "original" folder), so the bitwise operation expression becomes an invalid expression, and therefore the original file is incompatible and no mutants will be generated.
----a very simple example---
public class Demo {
public int rightShift(int num, int bits) {
int result = num >> bits;
return results;
}
public int leftShift(int num, int bits) {
int result = num << bits;
return results;
}
}
MuJava cannot generate mutants for this demo, due to an error:
xxxx/original/Demo.java: error: incompatible types: boolean cannot be converted to int
int result = num > bits;
................^
The text was updated successfully, but these errors were encountered:
MENG2010
changed the title
Bug generating original file if source file contains right-shift operators
Bug: Incorrectly generate the original file if source file contains right-shift operators
Jan 16, 2018
Right-shift (>>) and Unsigned Right-shift (>>>) in the source file are replaced with greater-than sign (>) unexpectedly in original file (the file in "original" folder), so the bitwise operation expression becomes an invalid expression, and therefore the original file is incompatible and no mutants will be generated.
----a very simple example---
MuJava cannot generate mutants for this demo, due to an error:
xxxx/original/Demo.java: error: incompatible types: boolean cannot be converted to int
int result = num > bits;
................^
The text was updated successfully, but these errors were encountered: