You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Justin Ross (JIRA)" <ji...@apache.org> on 2016/01/08 01:46:40 UTC

[jira] [Updated] (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 ]

Justin Ross updated PROTON-448:
-------------------------------
    Assignee:     (was: Darryl L. Pierce)

> 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: proton-c
>    Affects Versions: 0.5
>            Reporter: Darryl L. Pierce
>
> 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.3.4#6332)