CadixDev / Mercury

A source transformation and -remapping framework for Java.
Eclipse Public License 2.0
54 stars 23 forks source link

Remove imports when the imported name clashes with the new class name #26

Closed DenWav closed 4 years ago

DenWav commented 4 years ago

When the name of the class to be remapped clashes with an existing import, that import needs to be removed and all references to that class in the file should be fully qualified instead. The import rewriter handles that perfectly by just removing the import when we detect a clash.

jamierocks commented 4 years ago

Merged with https://github.com/CadixDev/Mercury/commit/b1be8b7047008dd79a0552135528ff7c6f511105.