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
Internally, there are methods to avoid this recursion when creating type variable names, e.g. JTypeVariableName#get() and KTypeVariableName#get(), but the public API doesn't have a way to avoid this recursion.
To Reproduce
Get a KTypeName (or JTypeName) of a type like Enum<E extends Enum<E>>
Describe the bug
KTypeVariableName.toJTypeVariableName()
(and similarlyJTypeVariableName.toKTypeVariableName()
) method can cause infinite recursion for type variable names that reference themselves (e.g.Enum<E extends Enum<E>>
).Internally, there are methods to avoid this recursion when creating type variable names, e.g.
JTypeVariableName#get()
andKTypeVariableName#get()
, but the public API doesn't have a way to avoid this recursion.To Reproduce
KTypeName
(orJTypeName
) of a type likeEnum<E extends Enum<E>>
KTypeName.toJTypeName()
(orJTypeName.toKTypeName()
)Expected behavior
The call should detect this and avoid the infinite recursion.
Additional context
Unfortunately, given the current API, I'm not sure there's a great way to work around this issue. Any ideas would be helpful.
The text was updated successfully, but these errors were encountered: