Results 1 to 7 of 7
Thread: Buggy behaviors samples
- 11-10-2011, 08:34 PM #1
Member
- Join Date
- Oct 2011
- Posts
- 7
- Rep Power
- 0
Buggy behaviors samples
Hi everyone,
I am looking for case samples of buggy behaviors in Java that a developer can face during execution of programs.
What can be most frequently buggy behaviors while programming and debugging on Java?
As for instance, there can be cases where in a GUI program, there can appear buggy behaviors such that a graphical element can appear in a wrong location (ex. textbox or button), or it fails to appears when it should appear.
Does anyone have any idea about this kind of cases and more general classification of these cases?
Are there repositories that do classify this kind of cases?
Thank you in advance!
- 11-10-2011, 10:49 PM #2
Re: Buggy behaviors samples
In my experience the most frequent errors are:
Spelling mistakes including incorrect case.
Mismatch brackets: curly, square and round.
Placing a semi-colon at the end of an if statement or loop.
Using == when comparing Strings.
Using i = i++. Although this does not come up nearly as often as it used to.
- 11-10-2011, 11:02 PM #3
Re: Buggy behaviors samples
Do you have an example to prove that statement?
Bug DatabaseAre there repositories that do classify this kind of cases?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 11-10-2011, 11:05 PM #4
Re: Buggy behaviors samples
D'oh!
I misunderstood. I thought you meant bugs introduced by the programmer but you mean bugs in the Java API.
- 11-11-2011, 12:24 AM #5
Member
- Join Date
- Oct 2011
- Posts
- 7
- Rep Power
- 0
Re: Buggy behaviors samples
Sorry for not presenting the topic in a good and clear way.
I am speaking about the bugs that are done by the developer.
There are bugs in the code that don't make the program fail, so the program runs "properly" but there appear these buggy behaviors such I mentioned in the first post.
Let have a more simple example. You have a simple drawing program. You have functions that define drawing simple objects in specific color - red, but when you run it, it draws different color lines-blue.
My question was regarding developer's bugs, which are not classic bugs but "buggy behavior".
- 11-11-2011, 12:27 AM #6
Member
- Join Date
- Oct 2011
- Posts
- 7
- Rep Power
- 0
Re: Buggy behaviors samples
I am speaking about the bugs that are done by the developer.
There are bugs inside code that do not make the program fail. The program runs normally but there appear these "buggy behaviors" such the example with the drawing line posted above.
I am interested to know these kind of "buggy behaviors" that developers face while developing and running applications.
Is there any kind of classification of these cases?
- 11-11-2011, 12:37 AM #7
Re: Buggy behaviors samples
In that case the question is much harder to answer. There can be a gazillion different things a developer can do wrong to make the program perform incorrectly. I heard one of the space probes plummetted into the surface of the planet it was supposed to be orbitting due to a misplaced sign (a positive value should have been negative or vice-versa). Using && instead of || and vice-versa can produce unexpected results. I'm sure if you put your mind to it you could think of a dozen or more examples.
Similar Threads
-
Collision Detection, a little bit buggy.
By iamsothecoolest in forum New To JavaReplies: 10Last Post: 08-04-2011, 12:03 AM -
JNI samples
By redforce.bala in forum Advanced JavaReplies: 3Last Post: 09-27-2010, 03:24 PM -
this keyword possibly buggy with scopes ?
By Coral in forum Advanced JavaReplies: 4Last Post: 02-02-2010, 12:50 PM -
How to plot graph in java for given samples
By annesteve31 in forum New To JavaReplies: 27Last Post: 11-29-2009, 09:27 PM -
Java cert exam samples
By orchid in forum New To JavaReplies: 5Last Post: 06-04-2007, 09:33 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks