Skip to content

Could not read file exception with 1.8.10 + java 18 #2956

@FrancoisBlavoet

Description

@FrancoisBlavoet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responseAn issue/PR that cannot be completed without additional information or a discussionbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions