You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Dmitry M. Kononov (JIRA)" <ji...@apache.org> on 2006/05/16 13:45:06 UTC
[jira] Updated: (HARMONY-188)
ObjectOutputStream.useProtocolVersion(version) should check a parameter
value.
[ http://issues.apache.org/jira/browse/HARMONY-188?page=all ]
Dmitry M. Kononov updated HARMONY-188:
--------------------------------------
Attachment: HARMONY-188.fix.txt
Test.java
A suggested fix and a test case are attached.
Please note, there are only 2 supported protocol version constants:
public static final int PROTOCOL_VERSION_1 1
public static final int PROTOCOL_VERSION_2 2
The spec reads that java.io.useProtocolVersion(int version) throws IllegalArgumentException, if "invalid version is passed in". RI follows this, but Harmony does not.
> ObjectOutputStream.useProtocolVersion(version) should check a parameter value.
> ------------------------------------------------------------------------------
>
> Key: HARMONY-188
> URL: http://issues.apache.org/jira/browse/HARMONY-188
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Dmitry M. Kononov
> Priority: Minor
> Attachments: HARMONY-188.fix.txt, Test.java, Test17.java
>
> ObjectOutputStream.useProtocolVersion(version) has to throw IllegalArgumentException if the given version is invalid. There are only two valid protocol versions: ObjectStreamConstants.PROTOCOL_VERSION_1 and ObjectStreamConstants.PROTOCOL_VERSION_2.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira