From da7a79e89771ac1d886cdbc49535f10a7150ef34 Mon Sep 17 00:00:00 2001 From: Derek Bankieris Date: Wed, 13 Dec 2017 07:58:20 -0600 Subject: [PATCH] Invoke qualified lookup of add_job in SimObjects Fixes #532 --- libexec/trick/pm/parse_s_define.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libexec/trick/pm/parse_s_define.pm b/libexec/trick/pm/parse_s_define.pm index eec2a21d..8c2dfe92 100644 --- a/libexec/trick/pm/parse_s_define.pm +++ b/libexec/trick/pm/parse_s_define.pm @@ -746,7 +746,8 @@ sub handle_sim_class_job($$$) { $tag =~ s/\s+//g ; @tags = split /,/ , $tag ; } - $job_push = "job = add_job($child, $job_id, $class, $sup_class_data, $cycle, \"$job_name\", \"\"" ; + # do not remove "this->", see issue #532 + $job_push = "job = this->add_job($child, $job_id, $class, $sup_class_data, $cycle, \"$job_name\", \"\"" ; if ( $class =~ /^integration$/ ) { if ($job_ret !~ /trick_ret/ ) {