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

Boundarybreaker picture Boundarybreaker  路  3Comments

ChloeDawn picture ChloeDawn  路  5Comments

Draylar picture Draylar  路  6Comments

Sollace picture Sollace  路  5Comments

Runemoro picture Runemoro  路  4Comments