Skip to content

missing methods #41

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

Closed
ramsestom opened this issue Mar 15, 2018 · 1 comment
Closed

missing methods #41

ramsestom opened this issue Mar 15, 2018 · 1 comment

Comments

@ramsestom
Copy link

Unlike what is stated in the readme file, JavaType.isArray() do not exist.
So how can I know if a parametter of a method is an array or not?
Because actually the example:

JavaMethod m = cls.getMethods()[0];
JavaParameter o = m.getParameters()[1];
boolean oArray = o.getType().isArray(); // true

won't work as .isArray() do not exist for JavaType...

@rfscholte
Copy link
Collaborator

Starting with QDox2 the model reflects more the Java API. Based on that, there's no isArray() for Type. Instead you should use the JavaClass, just like Class#isArray
Documentation should be updated...

rfscholte added a commit that referenced this issue Oct 12, 2022
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

No branches or pull requests

2 participants