Determining specific java class where a specific bug originated from [message #256871] |
Sat, 11 October 2008 16:16  |
Eclipse User |
|
|
|
Specific bugs within the bugzilla are distributed over several java
classes and across multiple package hierarchy. I am conducting research on
prediction models, and so far have not been able to determine for each bug
as to where exactly the bug originated. I would like to find out if there
is any way to determine where the specific bug did originate first -
specific java class or package. Any suggestions appriciated.
|
|
|
Re: Determining specific java class where a specific bug originated from [message #256875 is a reply to message #256871] |
Sat, 11 October 2008 21:00  |
Eclipse User |
|
|
|
<babich25@hotmail.com> wrote in message
news:8f4104c014cd4451d67e303897557f33$1@www.eclipse.org...
> Specific bugs within the bugzilla are distributed over several java
> classes and across multiple package hierarchy. I am conducting research on
> prediction models, and so far have not been able to determine for each bug
> as to where exactly the bug originated. I would like to find out if there
> is any way to determine where the specific bug did originate first -
> specific java class or package. Any suggestions appriciated.
I question your assumption.
Bugs are sometimes associated with a specific java class or package;
sometimes not. Sometimes a "bug" is a difference of opinion. Often a bug
is caused by a disagreement between the assumptions two different pieces of
code - and often in such a case when it is fixed, it is not fixed in the
"guilty" code but simply in the code where it will be easier to fix. Even
in a seemingly trivial case like a missing null check, the bug may be in the
code that produced the null, rather than in the code that failed to check
it. Bugs due to synchronization often are due to cycles of assumptions
distributed throughout the code, such that every individual assumption seems
good but taken as a whole they do not work.
If you prefer to ignore that and proceed anyway, I would suggest that you
start from CVS, rather than from Bugzilla: search CVS commit records for
references to specific bugs. Usually if the primary purpose of a code
change is to fix a bug, it will be indicated in the commit record.
|
|
|
Powered by
FUDForum. Page generated in 0.03818 seconds