Menu

#12 Form

open
nobody
None
5
2006-07-19
2006-07-19
No

Fix form for item ownership and inserting the first
element.

Discussion

  • warren crossing

    warren crossing - 2006-07-19

    patch for microedition form

     
  • Bartek Teodorczyk

    Logged In: YES
    user_id=248825

    Could you please describe some more details about this
    patch. Because in my opinion this is wrong.

    1.
    if (item.getOwner() != null && item.getOwner()!=this) {
    doesn't throw exception when item already has the owner of
    this form and according to the specification have to:
    "IllegalStateException - if the item is already owned by a
    container" - from Form.append(Item)

    2.
    if (itemNum!=0 && (itemNum < 0 || itemNum >= numOfItems)) {
    did you changed that one for situation when numOfItems==0?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.