-
Notifications
You must be signed in to change notification settings - Fork 427
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
ClassCastException when parsing a java file with method annotations passing array values #2350
Comments
Same problem on my side with
|
Hi! Thanks for the report and huge thanks for the reproducer, it was of great help! I've added a unit test to cover your exact case. Sorry for such a long wait :) Even though I've made it so that it doesn't fail, the generated signature for such sources might not be correct as I mentioned in the PR. We'll discuss and fix it separately, for now I think it's more important to have this not fail the build. |
Dokka tasks via the gradle plugin (all doc/plugin types) fail to succeed due to ClassCastException if a
String[].class
value is used in an annotation. I suspect this is the case for any array types, but only attempted reproduction with the case that was breaking dokka in my project.Stacktrace
Expected behaviour
Error does not occur.
To Reproduce
Clone reproduction project, and run
./gradlew dokkaHtml
Dokka configuration
All Defaults
Installation
Are you willing to provide a PR?
Yes, willing to, but would need to be pointed in the direction of the appropriate solution. Don't have any familiarity with the dokka codebase.
The text was updated successfully, but these errors were encountered: