• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which fix is better? - Java

 
Dongsun Kim
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am recently working on an automatic patch generation tool. When there is a bug, this tool localizes fault locations and tries to automatically create a proper patch to fix the bug.

By the way, sometimes, this tool might generate several different fixes for a single defect. In this case, it is difficult to determine which one is better than others.

For example, the following two patches can fix Mozilla BUG #114493 (https://bugzilla.mozilla.org/show_bug.cgi?id=114493).


Patch #1




Patch #2




Which one is better?
FYI, the bug report explains more details about the bug (see https://bugzilla.mozilla.org/show_bug.cgi?id=114493).



In fact, I have more cases like this.
Would you please visit the following link and let me which fix is better: http://autofix-survey.appspot.com/IndividualBugSurvey.html?type=stackoverflow



Dongsun.
 
Winston Gutkowski
Bartender
Pie
Posts: 10508
64
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dongsun Kim wrote:Which one is better?

Ooof. You've taken on a task and a half. And furthermore, I suspect, one that already has a 3rd party solution; particularly for specific products (like Mozilla).

1. I doubt whether all bug fixes boil down to a simple "either/or" choice. Indeed, some may involve several 'fixes' that have to be implemented at once.
2. I'm afraid that nobody is going through a list of bug fixes (of which there may be thousands) to determine which one is "right" for you. And even if some kind soul did: What if they're WRONG?

I have a feeling that you're going to need to (a) re-think your approach, or (b) lower your sights.

Winston
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dongsun, please BeForthrightWhenCrossPostingToOtherSites
http://programmers.stackexchange.com/questions/159559/which-fix-is-better-java
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic