jeffoffutt / muJava

Mutation system for Java programs, including OO mutation operators.
Apache License 2.0
66 stars 43 forks source link

methods in JTD will be analysed (bugfix) #2

Open DerBaer0 opened 9 years ago

DerBaer0 commented 9 years ago

Before, methods would only be analysed (and mutants generated), if the a parameter shadows an instance variable. But a local variable can shadow an instance var as well.

And I'm not sure about the AssignmentExpression function. In my tests, it never had to change anything. Is it necessary?

jeffoffutt commented 9 years ago

DerBaer0, before my student and I check this request, can you be more clear?

DerBaer0 commented 9 years ago

I use this simple Java program: https://gist.github.com/DerBaer0/0aa400abf29bc2d5b897 muJava produces 1 JTD mutant: Line 18: this.value = this.bar; => this.value = bar; I would expect more 3 mutants with the different "this.value"s replaced by "value".

I am a regular student, trying to use muJava for my thesis.