[
https://issues.apache.org/jira/browse/PROTON-448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13815994#comment-13815994
]
ASF subversion and git services commented on PROTON-448:
--------------------------------------------------------
Commit 1539656 from [~mcpierce] in branch 'proton/trunk'
[ https://svn.apache.org/r1539656 ]
PROTON-448: Backing out the Ruby data change.
Seems it's having a separate problem with strings not properly encoding.
The tests started to fail, so I'll pull this until I can fix them.
> 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
> Assignee: 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.1#6144)