I have two different Eclipse IDE Projects, which contain a equally named packages with.
Project one:
com.example.test
|_ lib.java
Project two:
com.example.test
|_ lib.java
Now, when I do import the lib.java inside of the Package one –
the lib.java inside of the pakcage two is used.
Questions:
Shouldn’t the Files in different Projects be independant from each other?
How is that possible, that I can enter a file from another Eclipse project?
Eclipse adds packages from ALL Projects, which are open in workspace.
It is not defined, which package will be used, when 2 Projects with same package names exist.