Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[java] Preserve array indicator in member docs #295

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexander-yakushev
Copy link
Member

Addresses #278.

The issue is quite confusing. Clojure's clojure.reflect namespace when dealing with square brackets [] transforms them to <> for whatever reason. In some places, it then transforms it back, e.g. in function clojure.reflect/typesym.

Orchard in different places removes <> indicators, possibly presuming they refer to generic arguments. However, with reflection, you can't get generics information anyway, since generics are not a runtime feature.

This PR ensures that things like java.lang.String<> are transformed back to java.lang.String[], and also doesn't do any "generics removal" for reflection-obtained docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant