forked from square/javapoet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conflicts with types with same name as type being declared (squar…
…e#559) * Add failing tests for types conflicting with type being declared Also removes previous (flawed) test, which should have been in JavaFileTest anyway, and add a separate test for the "superclass references self" case (already handled in TypeSpecTest#interfaceExtends btw, but this makes it clearer what is tested and expected). And add a separate test for classes in the same package conflicting with a superclass, for completeness. Reproduces square#470 * Fix conflicts with types with same name as type being declared Those types (annotations, or referenced in annotation values, in type variable bounds, superclass, or superinterfaces) were erroneously imported rather than being emitted with their qualified name. Fixes square#470
- Loading branch information
1 parent
40dfa0c
commit 4cd975b
Showing
4 changed files
with
124 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters