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:54:20 UTC

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

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


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

        

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

Posted by "Robert Greig (JIRA)" <qp...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/QPID-201?page=all ]

Robert Greig resolved QPID-201.
-------------------------------

    Fix Version/s: M2
       Resolution: Fixed

Patch applied svn revision 487779

> 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
>             Fix For: M2
>
>         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

        

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

Posted by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org>.
     [ 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

        

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

Posted by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Godfrey reassigned QPID-201:
--------------------------------

    Assignee: Rob Godfrey

> MapMessage: wrong exception thrown when getting null as char
> ------------------------------------------------------------
>
>                 Key: QPID-201
>                 URL: https://issues.apache.org/jira/browse/QPID-201
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client, JMS Compliance
>            Reporter: Rob Godfrey
>         Assigned To: Rob Godfrey
>            Priority: Minor
>             Fix For: M2
>
>         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.
-
You can reply to this email to add a comment to the issue online.