[Bug 419] New: CORBA Action::executeAny does not use given arguments.

For more information about this bug, visit
A new bug was added:
Summary: CORBA Action::executeAny does not use given arguments.
Product: RTT
Version: 1.2.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Corba
AssignedTo: orocos-dev [..] ...
ReportedBy: peter [dot] soetens [..] ...

the executeAny CORBA call takes new arguments for executing remote methods. The
remote method gets executed but the arguments are not used and the default ones
(given during construction) are used instead.

--
(this mail is best viewed with a fixed font)
Configure bugmail: http://www.fmtc.be/orocos-bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

[Bug 419] CORBA Action::executeAny does not use given arguments.

For more information about this bug, visit

peter [dot] soetens [..] ... changed:

What |Removed |Added
---------------------------------------------------------------------------
Target Milestone|--- |1.2.1
Status|NEW |ASSIGNED

------- Comment #1 from peter [dot] soetens [..] ... 2007-06-04 13:54

$ svn diff OperationsI.h
Index: OperationsI.h
===================================================================
--- OperationsI.h (revision 28234)
+++ OperationsI.h (working copy)
@@ -861,12 +861,11 @@
protected:
typedef T SourceType;
typedef typename RTT::DataSource::value_t ResultType;
- typename RTT::DataSource::shared_ptr mmethod;
- RTT::MethodC morig;
+ RTT::MethodC methodc;
public:
//Constructor
Orocos_Method_i (RTT::MethodC orig, typename
RTT::DataSource::shared_ptr datas, PortableServer::POA_ptr the_poa
)
- : Orocos_Expression_i( datas, the_poa ), mmethod( datas ),
morig(orig)
+ : Orocos_Expression_i( datas, the_poa ), methodc(orig)
{}

//Destructor
@@ -891,14 +890,14 @@
,::RTT::Corba::WrongNumbArgException
,::RTT::Corba::WrongTypeArgException
)) {
- RTT::MethodC mgen = morig;
+ RTT::MethodC mgen = methodc;
try {
for (size_t i =0; i != args.length(); ++i)
mgen.arg( RTT::DataSourceBase::shared_ptr( new
RTT::ValueDataSource( new CORBA::Any( args[i] ) )));
// if not ready, not enough args were given, *guess* a one off error
in the exception :-(
if ( !mgen.ready() )
throw ::RTT::Corba::WrongNumbArgException( args.length()+1,
args.length() );
- this->mmethod = mgen.getDataSource();
+ this->morig = mgen.getDataSource();
return this->execute();
} catch ( RTT::wrong_number_of_args_exception& wna ) {
throw ::RTT::Corba::WrongNumbArgException( wna.wanted, wna.received );
@@ -916,7 +915,7 @@
ACE_THROW_SPEC ((
CORBA::SystemException
)) {
- this->mmethod->reset();
+ this->morig->reset();
}
};

@@ -925,17 +924,16 @@
public virtual POA_RTT::Corba::Method

[Bug 419] CORBA Action::executeAny does not use given arguments.

For more information about this bug, visit

peter [dot] soetens [..] ... changed:

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

------- Comment #2 from peter [dot] soetens [..] ... 2007-06-13 10:01

Bugfix was tested and solves the problem.

--
(this mail is best viewed with a fixed font)
Configure bugmail: https://www.fmtc.be/orocos-bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm