llmhyy / microbat

A feedback-based debugger for interactively recommending suspicious step in buggy program execution.
54 stars 15 forks source link

MicroBat cannot run unit tests in default package #243

Open bchenghi opened 2 years ago

bchenghi commented 2 years ago

The following line 222 in microbat.util.MicroBatUtil , cName = cName.substring(0, cName.lastIndexOf(".")).replace(".", File.separator); throws String index out of bounds exception when the class is not in any package. Specifically cName.substring(0, cName.lastIndexOf(".")) as it resolves to cName.substring(0, -1)