Results 1 to 7 of 7
  1. #1
    asterix5 is offline Member
    Join Date
    Oct 2011
    Posts
    7
    Rep Power
    0

    Default 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!

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default 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.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: Buggy behaviors samples

    Quote Originally Posted by asterix5 View Post
    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.
    Do you have an example to prove that statement?

    Are there repositories that do classify this kind of cases?
    Bug Database

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default 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.

  5. #5
    asterix5 is offline Member
    Join Date
    Oct 2011
    Posts
    7
    Rep Power
    0

    Default Re: Buggy behaviors samples

    Quote Originally Posted by Junky View Post
    D'oh!

    I misunderstood. I thought you meant bugs introduced by the programmer but you mean bugs in the Java API.
    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".

  6. #6
    asterix5 is offline Member
    Join Date
    Oct 2011
    Posts
    7
    Rep Power
    0

    Default Re: Buggy behaviors samples

    Quote Originally Posted by DarrylBurke View Post
    Do you have an example to prove that statement?
    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?

  7. #7
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default 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

  1. Collision Detection, a little bit buggy.
    By iamsothecoolest in forum New To Java
    Replies: 10
    Last Post: 08-04-2011, 12:03 AM
  2. JNI samples
    By redforce.bala in forum Advanced Java
    Replies: 3
    Last Post: 09-27-2010, 03:24 PM
  3. this keyword possibly buggy with scopes ?
    By Coral in forum Advanced Java
    Replies: 4
    Last Post: 02-02-2010, 12:50 PM
  4. How to plot graph in java for given samples
    By annesteve31 in forum New To Java
    Replies: 27
    Last Post: 11-29-2009, 09:27 PM
  5. Java cert exam samples
    By orchid in forum New To Java
    Replies: 5
    Last Post: 06-04-2007, 09:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •