OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000439OMNeT++IDE / NED editorpublic2011-11-14 10:192011-11-14 14:51
Reportermichael 
Assigned Toandras 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version4.2rc1 
Target VersionFixed in Version4.2 
Summary0000439: modulinterface inheritance is nor resolved correctly
Descriptionfollowing example:

moduleinterface IA {
    gates:
        input ia;
        output oa;
}

moduleinterface ID extends IA {
    gates:
        input id;
        output od;
}

module B {
    parameters:
        string dType;
        string aType;
    
    submodules:
        subd: <dType> like ID {
        }
    suba: <aType> like IA {
    }
    
    connections allowunconnected:
        subd.ia <-- suba.oa; //# will be marked as a problem: "submodule subd has no gate named 'ia'"????
    subd.od --> suba.ia;
}

Additional InformationIf you modify ID as follow:
was tested in 4.2rc2

moduleinterface ID extends IA {
    gates:
        input ia;
        output oa;
        input id;
        output od;
}

then the NED editor marks it as problem because of redefinition, but the examples would be runable!?
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000593)
andras (administrator)
2011-11-14 14:51

Fixed the "submodule subd has no gate named 'ia'" error (indeed, the code looked at the wrong place when resolving interface inheritance). Thanks for reporting.

- Issue History
Date Modified Username Field Change
2011-11-14 10:19 michael New Issue
2011-11-14 14:51 andras Note Added: 0000593
2011-11-14 14:51 andras Status new => resolved
2011-11-14 14:51 andras Fixed in Version => 4.2
2011-11-14 14:51 andras Resolution open => fixed
2011-11-14 14:51 andras Assigned To => andras


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker