harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry M. Kononov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-188) ObjectOutputStream.useProtocolVersion(version) should check a parameter value.
Date Tue, 16 May 2006 11:45:06 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-188?page=all ]

Dmitry M. Kononov updated HARMONY-188:

    Attachment: HARMONY-188.fix.txt

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:
For more information on JIRA, see:

View raw message