Skip to content

Unable to compile kotlin when using polyglot-kotlin extension #214

Closed
@thorntonrp

Description

@thorntonrp

I created PR #213 to resolve an issue when using the polyglot-kotlin extension in combination with version 1.4.0 of the kotlin maven compiler plugin. This pull request upgrades the polyglot-kotlin extension to use Kotlin 1.4.0 which was released on August 17. When projects using version 1.4.0 of the kotlin maven compiler plugin attempt to compile their kotlin source code, the compiler plugin gets the following exception:

java.lang.NoSuchMethodError: 'kotlin.sequences.Sequence kotlin.sequences.SequencesKt.flatMapIterable(kotlin.sequences.Sequence, kotlin.jvm.functions.Function1)'

While debugging, I determined that the above compiler exception only happens with projects using both the polyglot-kotlin extension and Kotlin 1.4.0. Upgrading the polyglot-kotlin extension to use Kotlin 1.4.0 fixes this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions