dokka icon indicating copy to clipboard operation
dokka copied to clipboard

Could not read file exception with 1.8.10 + java 18

Open FrancoisBlavoet opened this issue 1 year ago • 16 comments

wDescribe the bug I am migrating my android library project to kotlin 1.8.10, but I started getting this exception:

Could not read file: /nvme/buildkite/builds/8192mb-4096cpu-android_603ae6562927_fc6092f/instacart/instacart-design-system-android/legacy-core/build/intermediates/compile_library_classes_jar/release/classes.jar!/com/instacart/design/itemcard/ItemCard.class; size in bytes: 3691; file type: CLASS
--
  | java.lang.UnsupportedOperationException: PermittedSubclasses requires ASM9

Expected behaviour

Not crashing would be very nice and polite

To Reproduce It seems to occur when a module refers to classes from another module (and both of these modules use dokka)

Dokka configuration

Kotlin 1.8.10
OpenJDK 64-Bit Server VM Zulu18.32+13-CA 

Installation

  • Operating system: macOS/Linux
  • Build tool: Gradle 8.0.2, happens on both CI and locally
  • Dokka version: 1.8.10 (I have another error if I try to only downgrade dokka to 1.7.20)

Additional context

Are you willing to provide a PR? Potentially yes, I might need some guidance to pinpoint the source thoug

FrancoisBlavoet avatar Apr 03 '23 19:04 FrancoisBlavoet