Goto does not work with Java compiler
Summary
Seems shouldn't reach code after goto, yet it does.
Steps and/or TTCN-3 code to reproduce
Create a single module:
module my {
type component myct{
}
testcase mytc() runs on myct{
goto here;
setverdict(fail);
log("itt jartam");
label here;
setverdict(pass);
}
}
What is the current bug behavior?
Global verdict is fail.
What is the expected correct behavior?
. Global verdict is pass, as execution jumps over the setverdict(fail) statement. "itt jartam" should not be in the log
Relevant logs and/or screenshots
2022/Mar/22 16:45:27.936000 EXECUTOR - TTCN-3 Main Test Component started on HUL21014. Version: 8.1.0.
2022/Mar/22 16:45:27.939000 EXECUTOR - Connected to MC.
2022/Mar/22 16:45:27.940000 EXECUTOR - Executing test case mytc in module my.
2022/Mar/22 16:45:27.944000 TESTCASE - Test case mytc started.
2022/Mar/22 16:45:27.950000 PARALLEL - Initializing variables, timers and ports of component type my.myct inside testcase mytc.
2022/Mar/22 16:45:27.958000 PARALLEL - Component type my.myct was initialized.
2022/Mar/22 16:45:27.960000 VERDICTOP - setverdict(fail): none -> fail
2022/Mar/22 16:45:27.967000 USER - itt jartam
2022/Mar/22 16:45:27.969000 PARALLEL - Terminating component type my.myct.
2022/Mar/22 16:45:27.969000 PARALLEL - Component type my.myct was shut down inside testcase mytc.
2022/Mar/22 16:45:27.969000 EXECUTOR - Waiting for PTCs to finish.
2022/Mar/22 16:45:27.970000 VERDICTOP - Setting final verdict of the test case.
2022/Mar/22 16:45:27.975000 VERDICTOP - Local verdict of MTC: fail
2022/Mar/22 16:45:27.976000 VERDICTOP - No PTCs were created.
2022/Mar/22 16:45:27.977000 TESTCASE - Test case mytc finished. Verdict: fail
2022/Mar/22 16:45:27.979000 STATISTICS - Verdict Statistics: 0 none (0 %), 0 pass (0 %), 0 inconc (0 %), 1 fail (100 %), 0 error (0 %)
2022/Mar/22 16:45:27.986000 STATISTICS - Test execution summary: 1 test case was executed. Overall verdict: fail
2022/Mar/22 16:45:27.987000 EXECUTOR - Exit was requested from MC. Terminating MTC.
2022/Mar/22 16:45:27.989000 EXECUTOR - Disconnected from MC.
2022/Mar/22 16:45:27.989000 EXECUTOR - TTCN-3 Main Test Component finished.
Titan version
8.1.0
Platform details (OS type and version)
Microsoft Windows 10 Enterprise 10.0.19042
/cc @aknappqwt