Skip to content

Commit 6452f26

Browse files
author
pderakhshanfar
committed
Fix some minor bugs in integration fitness function
1 parent a985b48 commit 6452f26

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

botsing-commons/src/main/java/eu/stamp/botsing/commons/graphs/cfg/BotsingRawControlFlowGraph.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void addInterProceduralEdge(BytecodeInstruction src, BytecodeInstruction
5959
}
6060
}
6161
if(!alreadyRedirected){
62-
throw new IllegalArgumentException("method "+target.getMethodName()+" does not have any exit point");
62+
LOG.warn("method "+target.getMethodName()+" does not have any exit point");
6363
}
6464
this.addEdge(src, target, false);
6565
}

botsing-reproduction/src/main/java/eu/stamp/botsing/fitnessfunction/IntegrationTestingFF.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected double exceptionCoverage(ExecutionResult executionResult) {
7171
continue;
7272
}
7373

74-
int crashingLine = resultException.getStackTrace()[0].getLineNumber();
74+
int crashingLine = resultException.getStackTrace()[frame].getLineNumber();
7575
if(targetCrash.getFrame(1).getLineNumber() != crashingLine || !targetCrash.getFrame(1).getClassName().equals(crashingClass)){
7676
continue;
7777
}

0 commit comments

Comments
 (0)