[Bug 849] New: Attribute::get doesn't work anymore over CORBA.

http://bugs.orocos.org/show_bug.cgi?id=849

Summary: Attribute::get doesn't work anymore over CORBA.
Product: Toolchain
Version: master
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P3
Component: RTT
AssignedTo: orocos-dev [..] ...
ReportedBy: paul [dot] chavent [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Created attachment 672
--> http://bugs.orocos.org/attachment.cgi?id=672
Attribute::get doesn't work over CORBA.

When i call Attribute::get() over CORBA i don't have the last value.

The commit
5e449e7e79f5ef10d224887c1a2e7639a6f65afd seems to have changed the behavior of
the get method, so i reverted this modification and it works again.

What do you you suggest ?

[Bug 849] Attribute::get doesn't work anymore over CORBA.

http://bugs.orocos.org/show_bug.cgi?id=849

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED

--- Comment #1 from Peter Soetens <peter [..] ...> 2011-03-28 12:20:59 CEST ---
(In reply to comment #0)
> Created attachment 672
> Attribute::get doesn't work over CORBA.
>
> When i call Attribute::get() over CORBA i don't have the last value.
>
> The commit
> 5e449e7e79f5ef10d224887c1a2e7639a6f65afd seems to have changed the behavior of
> the get method, so i reverted this modification and it works again.
>
>
> What do you you suggest ?

The fix was indeed not correct. Before calling data->rvalue(), one must call
data->evaluate(). I have created a patch that documents and fixes this and
which adds a test for this case on toolchain-2.3. See a48717d.

Thanks for spotting.

Peter