You Are Here:

Community: Developer Discussion Boards

#1 Old InputStream zero length read bug on 7650 ? - 2002-11-08, 03:17

Join Date: Mar 2003
Posts: 3
robbiegates
Offline
Registered User
Hi All,
when i call InputStream.read(byte[] b, int off, int len) and pass 0 for len, i get a return value of -1 on the 7650 hardware. According to the MIDP docs, "If len is zero, then no bytes are read and 0 is returned". In fact the stream is at EOF when i do this read, but the API docs seem quite explicit about the behaviour in this case.

Clearly I can workaround this easy enough, but just wanted to know if others had seen this and provide some feedback.

- robbie
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia