Yarn: Cannot generate Javadocs

Created on 26 Dec 2020  ·  4Comments  ·  Source: FabricMC/yarn

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)
bug toolchain

Most helpful comment

Tested right now in 8276930, not failing anymore.

All 4 comments

Can't reproduce with Adopt OpenJDK

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

Do you still have this issue?

Tested right now in 8276930, not failing anymore.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bixilon picture Bixilon  ·  5Comments

Runemoro picture Runemoro  ·  3Comments

quat1024 picture quat1024  ·  6Comments

ChloeDawn picture ChloeDawn  ·  6Comments

liach picture liach  ·  4Comments