-
May 28th, 2007, 03:06 PM
#1
NumberFormatException constantly generated by LS Client library
Dear all,
Something I noticed a while ago but only now I am writing about it.
I seems that the j2me client library is internally testing a string being a number by using Integer.parseInt(). This generates a lot of NumberFormatException logging in J2ME emulator when exception tracing is enabled.
This does not cause the code to fail as I believe this is as designed, but performance wise, I don't think this is the best way to test if a string is a number.
Exceptions are known to be performance killers in Java and usually should not be used to handle normal cases. In J2ME, I have a feeling it is causing some pauses in the application.
Regards,
A
Similar Threads
-
By Alessandro in forum Client SDKs
Replies: 0
Last Post: March 28th, 2011, 04:06 PM
-
By athanasius in forum Client SDKs
Replies: 3
Last Post: December 3rd, 2009, 11:57 AM
-
By rd2008 in forum Client SDKs
Replies: 2
Last Post: April 28th, 2009, 11:03 AM
-
By gadder in forum General
Replies: 1
Last Post: October 26th, 2007, 11:50 AM
-
By Mone in forum Client SDKs
Replies: 0
Last Post: October 22nd, 2007, 12:07 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 01:42 PM.
Bookmarks