Which works fine - until somebody notices
that "Assert" class is duplicated 8 times in different plugins.
With that in mind somebody adds "Assert" as a public API to the
package org.eclipse.core.runtime. Now developers won't have to duplicate
"Assert" class anymore and the world is a better place.
You probably guessed what happens next:
plugin ABC doesn't compile anymore as "import .* " statements
become ambiguous. (By the way, no changes were made to the plugin ABC in
the process - yet it doesn't compile anymore.)
Peter Kriens <Peter.Kriens@xxxxxxxx>:
> I like the import abc.* very much because it is easier to see what
> packages are used, less redundant information is easier to grasp.
> Coupling takes place on package level, not class level. The root of
> most software evil is redundancy.
> I do not understand the problems:
> - Identical names are rare and confusing anyway.
> - F3 brings you to the definition regardless of the import