OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0001052OMNeT++simulation kernelpublic2018-09-18 10:082018-09-18 10:20
andras 
 
normalminorhave not tried
newopen 
5.4 
 
0001052: Module class or signal data class not found when using a module from a package with a different namespace default
Module class or signal data class not found when using a module from a package with a different namespace default.

Typical occurrence is when extending a project that uses namespace (like INET) with another project that uses a different namespace. OMNeT++ tries to look up the class in the second project's namespace instead of the original project (INET) where it is actually defined.




No tags attached.
Issue History
2018-09-18 10:08andrasNew Issue
2018-09-18 10:10andrasNote Added: 0001373
2018-09-18 10:20andrasNote Added: 0001374

Notes
(0001373)
andras   
2018-09-18 10:10   
Cause: wrong package is searched for @namespace(): the one where the module is extended, not where it is defined.
(0001374)
andras   
2018-09-18 10:20   
Example:

project 1 with @namespace(foo) in package.ned:

simple Foo {
    @class(Foo);
}

project 2 with @namespace(bar) in package.ned:

simple FooExt extends Foo {
}

Error: bar::Foo class not found. Of course, because it's called foo::Foo.