I’ll try to explain well what’s my issue here…
I have a project and the sources are in a
src directory. Inside this directory I have a class named
Constant which is without any package since src is included as
Then In my project I use another class, let’s name it
A, from another project which is in a package named
A class I call a field of
Constant class without any package target.
In the package
com I have another class named
So, when I call
A class from my project,
Constant doesn’t target the
Constant class which is without any package but the one that is in
com package (one level lower)
My question is : Is there a way to target the
Constant class (which isn’t in
com package but which is without any package) ?
The solution here is to put
Constant class which is without any package, inside a package, so I will be able to target this one using the specified package.
Another solution would be to use a
typedef inside my projects that targets the project’s
Constant I want…
But I thought I could have a shared
A class with a call to
Constant without specifing any package so it will target the
Constant class which is in the project I’m working on… So this isn’t possible right ?
For me it’s logical since I don’t specify
com.Constant it should call the
Constant class which is without any package (the one related to the project I’m working on…)
F**k, the one who understand my topic is really good…