Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering
Replace all placeholder words (written with underscores) by their suitable counterparts in the context of your Bug.
“Not enough arguments are passed to satisfy a placeholder in the format string. A runtime exception will occur when this statement is executed.” – 2013-12-02
It is about When we have some format specified but actually arguments are not there.
Add here a minimal example where the problem occurs. It should be possible to use this code for testing our analysis: <code Java> package javaSample.bugCor052;
public class FormatStringReferencesMissingArgument {
public static void main (String[] args){
System.out.printf("%d"); System.out.printf("%s"); System.out.printf("%f"); }
} </Code>
Add here one or more options to fix the above problem could that could be used for testing our transformation(s): <code Java> package javaSample.bugCor052;
public class FormatStringReferencesMissingArgument {
public static void main (String[] args){
System.out.printf("%d",1234); System.out.printf("%s","hello"); System.out.printf("%f",1.2); }
} </Code>
Benchmark project | Precision | Recall | ||||
---|---|---|---|---|---|---|
FB | JT | Delta | FB | JT | Delta | |
Project … | …% | …% | …% | …% | …% | …% |
Project … | …% | …% | …% | …% | …% | …% |
FB = FindBugs, JT = JTransformer, Delta = JTransformer - FindBugs