db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jørgen Løland (JIRA) <j...@apache.org>
Subject [jira] Updated: (DERBY-3003) ArrayInputStream.skipBytes() may throw EOFException which is disallowed by java.io.DataInput
Date Mon, 15 Oct 2007 11:25:51 GMT

     [ https://issues.apache.org/jira/browse/DERBY-3003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jørgen Løland updated DERBY-3003:
---------------------------------

    Derby Info: [Patch Available]

> ArrayInputStream.skipBytes() may throw EOFException which is disallowed by java.io.DataInput
> --------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3003
>                 URL: https://issues.apache.org/jira/browse/DERBY-3003
>             Project: Derby
>          Issue Type: Bug
>          Components: Services
>    Affects Versions: 10.4.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Jørgen Løland
>            Priority: Minor
>         Attachments: derby-3003-1.diff, derby-3003-1.stat
>
>
> The javadoc for java.io.DataInput.skipBytes(int) says (<URL:http://java.sun.com/javase/6/docs/api/java/io/DataInput.html#skipBytes(int)>):
> >  This method never throws an EOFException.
> The implementation of this method in org.apache.derby.iapi.services.io.ArrayInputStream
says:
> 		if ((position + n) > end) {
> 			throw new EOFException();
> 		}
> The method in ArrayInputStream should be changed so that it skips as many bytes as possible
(max n) and returns the actual number of bytes skipped, even when EOF is reached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message