| Issue 24: | Datagram schema related bug | |
| 1 person starred this issue and may be notified of changes. | Back to list |
MicroEmu does not accept datagram address in Sun standard. UDPDatagramConnection conn; conn.newDatagram(buff, length, "datagram://server:port"); The above line will throw an exception. I must remove "datagram://" from the address string to make it work. However according to Sun MIDP specs and Sun Wireless Toolkit Emulator, we must provide the schema.
Feb 24, 2010
Hi, I just download the source file, and found that this bug was not fixed completely. When we call Datagram.getAddress(), the returned string should also contain "datagram://" at the beginning.
Feb 25, 2010
Reopening for fixing Datagram.getAddress()
Status:
Accepted
Feb 26, 2010
szcoder, Can you attach the reference document that explains format of returning String in Datagram.getAddress()? It looks that also Datagram.setAddress(..) potentially has to be fixed too.
Mar 1, 2010
Hi, I don't have the reference document. I got the results with the emulator in Sun's Wireless Toolkit 2.5.2. In Sun's Wireless Toolkit and Nokia phones, Datagram.setAddress() must have "datagram://" at the beginning, and Datagram.getAddress() returns a string with "datagram://". Thanks.
Mar 3, 2010
Fixed Datagram.getAddress() and Datagram.setAddress()
Status:
Fixed
|
Labels: Milestone-3.0