Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4940129
Votes 0
Synopsis Exeption thrown from Currency converter example
Category forte4j:kjava
Reported Against 5_ea
Release Fixed 5_fcs
State 11-Closed, Unverified, bug
Priority: 4-Low
Related Bugs
Submit Date 19-OCT-2003
Description
One more bug in the Currency converter demo, i installed it and run it through WTK21 emulator and when reaching the limit of digits allowed to be entered into the textbox i get the following IAE:
"java.lang.IllegalArgumentException
       at javax.microedition.lcdui.TextField.setChars(+106)
       at javax.microedition.lcdui.TextField.setString(+27)
       at converter.client.Converter.itemStateChanged(+88)
       at javax.microedition.lcdui.Form.callItemStateChanged(+27)
       at javax.microedition.lcdui.Display.callItemStateChanged(+14)
       at javax.microedition.lcdui.Display.access$900(+5)
       at javax.microedition.lcdui.Display$DisplayAccessor.callItemStateChanged(+8)
       at javax.microedition.lcdui.Display$DisplayManagerImpl.callItemStateChanged(+10)
       at com.sun.midp.lcdui.DefaultEventHandler.itemStateChangedEvent(+17)
       at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+836)
"

Regards
Eran 
 xxxxx@xxxxx  2003-10-19
 xxxxx@xxxxx  2003-10-20
Work Around
N/A
Evaluation
less valuable currencies can overflow when entering big amount of more valuable currency 
(for example Yen will overflow when entering more than 8 trillion US$)
 xxxxx@xxxxx  2003-10-20
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang