SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
teaching:labs:mdse:2013:bug_descriptions:jt-bug-cor116 [2013/12/09 15:57]
127.0.0.1 external edit
teaching:labs:mdse:2013:bug_descriptions:jt-bug-cor116 [2018/05/09 01:59] (current)
Line 1: Line 1:
 +====== Bug Cor116_(SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD) ======
  
 +//SA: Self assignment of local rather than assignment to field//
 +
 +===== Inspired by =====
 +
 +  * [[http://​findbugs.sourceforge.net/​bugDescriptions.html#​SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD | SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD]]
 +
 +===== Original Description =====
 +
 +"This method contains a self assignment of a local variable, and there is a field with an identical name. assignment appears to have been ; e.g.
 +
 +  int foo;
 +  public void setFoo(int foo) {
 +    foo = foo;
 +  }" -- 2013-12-09
 +
 +===== Detailed Description =====
 +
 +//Add here your own description,​ which explains the issue in more detail.// ​
 +
 +===== Sample Problem Scenario =====
 +
 +//Add here a minimal example where the problem occurs. It should be possible to use this code for testing our analysis://
 +<code Java>
 + class Bla {  ... }
 +</​Code>​
 +
 +===== Sample Counter Scenario =====
 +
 +//Add here a minimal example where the problem **DOES NOT** occur. It should be possible to use this code for testing our analysis://
 +<code Java>
 + class Bla {  ... }
 +</​Code>​
 +
 +
 +===== Sample Fix =====
 +
 +//Add here one or more options to fix the above problem could that could be used for testing our transformation(s)://​
 +<code Java>
 + class Bla {  ... }
 +</​Code>​
 +
 +===== Evaluation Results =====
 +
 +^  Benchmark project ​ ^  Precision ​             ^^^  Recall ​               ^^^
 +|                     ​| ​ FB    |  JT    |  Delta  |  FB    |  JT    |  Delta |
 +|  Project ...        |  ...%  |  ...%  |  ...%   ​| ​ ...%  |  ...%  |  ...%  |  ​
 +|  Project ...        |  ...%  |  ...%  |  ...%   ​| ​ ...%  |  ...%  |  ...%  |   
 +FB = FindBugs, JT = JTransformer,​ Delta = JTransformer - FindBugs
 + 
teaching/labs/mdse/2013/bug_descriptions/jt-bug-cor116.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019