Bug 515533 - report impossible connect and map statements
Summary: report impossible connect and map statements
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: titan.core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Bence Janos Szabo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-20 12:08 EDT by Kristof Szabados CLA
Modified: 2021-04-23 09:53 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristof Szabados CLA 2017-04-20 12:08:54 EDT
Tomas Urban reported in mantic CR 7607 an interesting case related to connect and map statements.

Currently this code is accepted:
"
type port P message { in integer; }
type component C { port P p; }
testcase TC() runs on C system C {
  var C v_ptc := C.create;
  connect(self:p, v_ptc:p);
}
"

But as the port does not have an out parameter list, it is not possible to actually send out any message on this port and so the connection should be reported as erroneous (or at least quality warning)

This should be done in the core and designer components.
Comment 1 Bence Janos Szabo CLA 2017-08-15 03:18:14 EDT
Assigned
Comment 2 Bence Janos Szabo CLA 2017-08-15 09:02:48 EDT
Added in titan.core:

https://github.com/eclipse/titan.core/commit/1ac61b5150218c6cb80003cb17c880bcb3e1e920

The eclipse plugin only implemented the checks for the connect operation (except for the procedure based port).
This still needs to be implemented in the eclipse plugin.
Comment 3 Denis Roy CLA 2021-04-23 09:53:27 EDT
This bug was migrated to GitLab: https://gitlab.eclipse.org/eclipse/titan/titan.core/-/issues