Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Compatibility issue

941110Jun 1 2012 — edited Jun 2 2012
Hi,

I am creating java application, in that I am using java.io.InputStream.read() function and I put this function inside the try block. In windows xp its catching the exception but in windows 7 its not catching the exception.

My java version is: 1.7.0_03

Thnks for the reply in advance.

Edited by: 938107 on 01-Jun-2012 05:41

Comments

EJP
'The' exception?

What exception?
941110
java.io.InputStream.read(byte[] b) will throw IOException...
EJP
You are wasting time. InputStream.read() has always been declared that way. Windows 7 has nohing to do with it.

Or else you are still omitting some information.
941110
No, If I wrapped the read method inside the try block, the exception is happening in windows xp when there is no data or network communication failure. But the exception is not happening in windows 7.
EJP
What exception is being caught, in what code? Full message, full stack trace.
1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 30 2012
Added on Jun 1 2012
5 comments
2,408 views