Menu

#1 Two Objects with same name under different packages?

open
nobody
None
5
2003-06-10
2003-06-10
Anonymous
No

If there exists two objects with the same name but
under different name spaces. One object needs to be
fully qualifed to prevent naming collisions.

Currently mockmaker does not appear to handle this? It
generates two import statements rather than fully
qualifying the types when they are being used.

eg if there exists two objects called Name under
different package structures the following imports and
method declarations are created

import a.b.c.Name
import x.y.z Name

void createName(Name name)

This therefore causes conflicts. Is this a bug?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.