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

Norman Maurer updated AMQ-3037:
-------------------------------

    Description: 
When use a ActiveMQMapMessage.setLong("key", 200) and then use 
ActiveMQMapMessage.getInt("key") it will throw an Exception.

Exceptions is;
javax.jms.MessageFormatException:  cannot read an int from java.lang.Long
        at 
org.apache.activemq.command.ActiveMQMapMessage.getInt(ActiveMQMapMessage.java:320)


  was:When use a ActiveMQMapMessage.setLong("key", 200) and then use 
ActiveMQMapMessage.getInt("key") it will throw an Exception 

        Summary: ActiveMQMapMessage.getInt(..) does throw an Exception when try 
to access Long  (was: ActiveMQMapMessage.getInt(..) does work with Long values)

> ActiveMQMapMessage.getInt(..) does throw an Exception when try to access Long
> -----------------------------------------------------------------------------
>
>                 Key: AMQ-3037
>                 URL: https://issues.apache.org/activemq/browse/AMQ-3037
>             Project: ActiveMQ
>          Issue Type: Bug
>         Environment: Current trunk
>            Reporter: Norman Maurer
>         Attachments: AMQ-3037.diff
>
>
> When use a ActiveMQMapMessage.setLong("key", 200) and then use 
> ActiveMQMapMessage.getInt("key") it will throw an Exception.
> Exceptions is;
> javax.jms.MessageFormatException:  cannot read an int from java.lang.Long
>       at 
> org.apache.activemq.command.ActiveMQMapMessage.getInt(ActiveMQMapMessage.java:320)

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

Reply via email to