You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
If we want to generate a ComponentImpl that reference a type that has the same simple name as a nested type in Component, then there will be a type name clash.
There is a avoidClashesWithNestedClasses can help with workaround the issue, it will keep the package prefix of NestedType in ComponentImpl. Then the generated code will be like
When we have
If we want to generate a ComponentImpl that reference a type that has the same simple name as a nested type in Component, then there will be a type name clash.
There is a
avoidClashesWithNestedClasses
can help with workaround the issue, it will keep the package prefix of NestedType in ComponentImpl. Then the generated code will be likeBut if the external Nested type is within the same package.
The package prefix will gets stripped anyways. So even I added
avoidClashesWithNestedClasses
, it will still clash.I think it is because in
javapoet/src/main/java/com/squareup/javapoet/CodeWriter.java
Line 402 in 742af18
Can someone file a fix for it? Thanks!
The text was updated successfully, but these errors were encountered: