You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org> on 2006/12/16 10:58:21 UTC

[jira] Updated: (QPID-201) MapMessage: wrong exception thrown when getting null as char

     [ http://issues.apache.org/jira/browse/QPID-201?page=all ]

Rob Godfrey updated QPID-201:
-----------------------------

    Attachment: QPID-201.patch

Requires the ability to distinguish if a value is a "Null String" in a FieldTable.
Added required method to FieldTable interface, PropertyFieldTable class, and used the method to return the correct exception in JMSPropertiesFieldTable.

Unit test amended to test for this case

> MapMessage: wrong exception thrown when getting null as char
> ------------------------------------------------------------
>
>                 Key: QPID-201
>                 URL: http://issues.apache.org/jira/browse/QPID-201
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client, JMS Compliance
>            Reporter: Rob Godfrey
>            Priority: Minor
>         Attachments: QPID-201.patch
>
>
> MapMessage : if you set a value to be null, via setString, then an attempt to recieve the value through getChar you should receive a NullPointerException not a MessageFormatException

-- 
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