Possible Bugs

Erez Hadad <[email protected]> Sun, 25 Sep 2005 21:59:17 +0300
Newsgroups gmane.comp.corba.orbacus
Message-ID <[email protected]>
Hi,

(Using JOB-4.1.3/JDK1.4.2/Linux)
I believe you have bugs in com.ooc.CORBA.InputStream: according to the 
CORBA/Java specification, the org.omg.CORBA.portable.InputStream (which you 
implement through com.ooc.CORBA.InputStream) should extend 
java.io.InputStream and conform to its specification. However, I have noticed 
the following two exceptions:
1. available() is not overridden, so it returns 0 even though there is data to 
be read from the stream.
2. read() returns the byte value of the stream's internal buffer 
(buf_.data_[pos++]), which is a byte value [-128, +127] rather than convert 
it to an int value in the range of [0, 255] as the Java specification 
requires. -1 should be returned only for an end-of-stream. Consequently, 
trying to read the stream as a Java byte-stream would fail prematurely.

Please verify the bugs.

Regards,
Erez Hadad
_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html