activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Davies (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (AMQ-1965) StreamMessage.writeObject() ignores Long data type
Date Tue, 21 Oct 2008 14:12:52 GMT

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

Rob Davies reassigned AMQ-1965:
-------------------------------

    Assignee: Rob Davies

> StreamMessage.writeObject() ignores Long data type
> --------------------------------------------------
>
>                 Key: AMQ-1965
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1965
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.1.1
>            Reporter: Andrew Perepelytsya
>            Assignee: Rob Davies
>
> streamMessage.writeObject(new Long("1")) is silently ignored, nothing is written to the
message body. The ActiveMQStreamMessage is missing one 'if' clause for the Long datatype.
> {code:java}
> ConnectionFactory cf = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false&broker.useJmx=false");
>         Session session = cf.createConnection().createSession(false, Session.AUTO_ACKNOWLEDGE);
>         StreamMessage sm = session.createStreamMessage();
>         sm.writeObject(new Long("1"));
>         // reset so it's readable now
>         sm.reset();
>         assertEquals(new Long("1"), sm.readObject());
> {code}

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


Mime
View raw message