[rabbitmq-discuss] Dialyzer errors in RabbitMQ Erlang client

Edwin Fine rabbitmq-discuss_efine at usa.net
Wed Jun 18 00:21:49 BST 2008


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()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20080617/4b7fd678/attachment.htm 


More information about the rabbitmq-discuss mailing list