I've been given the task to make a small modification in a compiled .jar file. We don't have the source code for this anymore.
I downloaded JD-GUI and I managed to open the .jar file and see it's class files, but I'm afraid that some of the functions have only commented out lines with the //Byte Code header. It looks something like this:
private static List<BatchInfo> createBatchesFromCSVFile(BulkConnection connection, JobInfo jobInfo, String csvFileName)
throws IOException, AsyncApiException
{
// Byte code:
// 0: new 109 java/util/ArrayList
// 3: dup
// 4: invokespecial 111 java/util/ArrayList:<init> ()V
// 7: astore_3
// 8: new 356 java/io/BufferedReader
......
If there are functions like this, will I be able to re-compile the file? I want to note, that I don't necessarily have to make my changes in the file that has these commented out lines. But this class is definitely used in the main class which I would have to rewrite.
PS: this is a data loader tool, and we actually need to change a field mapping that was hard coded previously...