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
Next revision
Previous revision
teaching:labs:mdse:2013:bug_descriptions:jt-bug-cor115 [2013/12/09 17:15]
behnam_ghavimi
teaching:labs:mdse:2013:bug_descriptions:jt-bug-cor115 [2018/05/09 01:59] (current)
Line 1: Line 1:
 +====== Bug Cor115-(SA_FIELD_SELF_COMPUTATION) ======
  
 +//SA: Nonsensical self computation involving a field (e.g., x & x).//
 +
 +===== Inspired by =====
 +
 +  * [[http://​findbugs.sourceforge.net/​bugDescriptions.html#​SA_FIELD_SELF_COMPUTATION | SA_FIELD_SELF_COMPUTATION]]
 +
 +===== Original Description =====
 +
 +"This method performs a nonsensical computation of a field with another reference to the same field (e.g., x&x or x-x). Because of the nature of the computation,​ this operation doesn'​t seem to make sense, and may indicate a typo or a logic error. Double check the computation."​ -- 2013-12-09 ​
 +
 +
 +===== Detailed Description =====
 +
 +//When inside a method we use in both side of some special operators same global variable so always we have a fix result in these cases which makes that computation nonsense .// 
 +
 +===== Sample Problem Scenario =====
 +
 +//In below part we have an example://
 +<code Java>
 +public class test {static int y=0;
 +public static void find2(int x) {
 +   
 +   x=y-y;
 +    }
 + }
 +</​Code>​
 +
 +===== Sample Counter Scenario =====
 +
 +
 +<code Java>
 + public static void find2(int x) {   
 +      int y=0;
 + y=x-x;
 +
 + }
 +</​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-cor115.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019