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

Cannot generate Javadocs #1942

Closed
altrisi opened this issue Dec 26, 2020 · 4 comments
Closed

Cannot generate Javadocs #1942

altrisi opened this issue Dec 26, 2020 · 4 comments
Labels
bug Fixes or discusses a bug within the mappings toolchain

Comments

@altrisi
Copy link

altrisi commented Dec 26, 2020

When running gradlew javadoc, Gradle is unable to generate javadocs, failing with javadoc: error - cannot read Input length = 1 in the :javadoc task.

Workaround:
After searching ways to fix this, I found that passing -Dfile.encoding=UTF-8 to Gradle makes it work correctly. I think this should not be needed.

Environment:

  • Windows 10
  • Java 11 (Zulu openjdk 11.0.9.1)
@YanisBft YanisBft added bug Fixes or discusses a bug within the mappings toolchain labels Dec 27, 2020
@YanisBft
Copy link
Contributor

Can't reproduce with Adopt OpenJDK

@liach
Copy link
Contributor

liach commented Jan 8, 2021

Afaik mappingpoet is always outputting .java files in utf8 as that's javapoet's default behavior. Not sure what part uses other encoding.

@YanisBft
Copy link
Contributor

Do you still have this issue?

@altrisi
Copy link
Author

altrisi commented Mar 14, 2021

Tested right now in 8276930, not failing anymore.

@altrisi altrisi closed this as completed Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes or discusses a bug within the mappings toolchain
Projects
None yet
Development

No branches or pull requests

3 participants