Erlang/OTP Forums

Author Message

<  RabbitMQ mailing list  ~  Dialyzer errors in RabbitMQ Erlang client

Guest
Posted: Tue Jun 17, 2008 11:22 pm Reply with quote
Guest
In running Dialyzer on my code, these warnings came up for the Erlang RabbitMQ Client (rabbitmq-erlang-client-200803131204.tar.gz). This seems to be the latest version of the client.

amqp_connection.erl:114: The call erlang:exit('channel_already_registered',ChannelNumber::any()) will fail since it differs in argument position 1 from the success typing arguments: (pid() | port(),any())
test_util.erl:237: The call erlang:exit('should_not_receive_any_more_messages',Msg::any()) will fail since it differs in argument position 1 from the success typing arguments: (pid() | port(),any())

These warnings look to be justified because exit/2 is defined as

exit(Pid, Reason) -> true

Types:
Pid = pid()
Reason = term()



Post received from mailinglist
0x6e6562
Posted: Wed Jun 18, 2008 6:12 am Reply with quote
User Joined: 12 Jul 2007 Posts: 250
Edwin,

On Wed, Jun 18, 2008 at 12:21 AM, Edwin Fine
<rabbitmq-discuss_efine@usa.net> wrote:
> amqp_connection.erl:114: The call
> erlang:exit('channel_already_registered',ChannelNumber::any()) will fail
> since it differs in argument position 1 from the success typing arguments:
> (pid() | port(),any())
> test_util.erl:237: The call
> erlang:exit('should_not_receive_any_more_messages',Msg::any()) will fail
> since it differs in argument position 1 from the success typing arguments:
> (pid() | port(),any())

This is a bug. I'll apply a fix and let you know when the new Erlang
client repo is available (see previous post).

Thanks for the input,

Ben

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
View user's profile Send private message
0x6e6562
Posted: Mon Jun 23, 2008 10:39 am Reply with quote
User Joined: 12 Jul 2007 Posts: 250
Edwin,

On Wed, Jun 18, 2008 at 7:11 AM, Ben Hood <0x6e6562@gmail.com> wrote:
> This is a bug. I'll apply a fix and let you know when the new Erlang
> client repo is available (see previous post).

I have fixed this and the Erlang client hg repo is now available at
http://hg.opensource.lshift.net/rabbitmq-erlang-client/

Also, you will find start/4 in the amqp_connection module in the
latest revision.

HTH,

Ben

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum