You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Alan Conway (JIRA)" <ji...@apache.org> on 2017/08/10 20:37:00 UTC

[jira] [Assigned] (PROTON-448) Ruby bindings need to have their set calls updated to properly map values to pn_data_t*

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

Alan Conway reassigned PROTON-448:
----------------------------------

    Assignee: Alan Conway

> Ruby bindings need to have their set calls updated to properly map values to pn_data_t*
> ---------------------------------------------------------------------------------------
>
>                 Key: PROTON-448
>                 URL: https://issues.apache.org/jira/browse/PROTON-448
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: ruby-binding
>    Affects Versions: 0.5
>            Reporter: Darryl L. Pierce
>            Assignee: Alan Conway
>             Fix For: Future
>
>
> When using the APIs in Qpid::Proton::Data I'm seeing:
> irb(main):001:0> require 'qpid_proton'
> => true
> irb(main):002:0> data = Qpid::Proton::Data.new
> => #<Qpid::Proton::Data:0x000000011553f0 @data=16, @free=false>
> irb(main):003:0> data.ubyte = 3
> value=3
> TypeError: Expected argument 0 of type pn_data_t *, but got Fixnum 16
> 	in SWIG method 'pn_data_put_ubyte'
> 	from /home/mcpierce/Programming/Proton/proton-c/bindings/ruby/lib/qpid_proton/data.rb:437:in `pn_data_put_ubyte'
> 	from /home/mcpierce/Programming/Proton/proton-c/bindings/ruby/lib/qpid_proton/data.rb:437:in `ubyte='
> 	from (irb):3
> 	from /usr/bin/irb:12:in `<main>'



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org