Skip to content

cucumber-java8 does not work on OpenJDK 12+ #1817

Closed
@mpkorstanje

Description

@mpkorstanje

When using OpenJDK 12+ in combination with cucumber-java8 users may experience class cast exceptions. See: Java+Cucumber execution error (java.lang.ClassCastException: class io.cucumber.docstring.DocString cannot be cast to class java.lang.String)

These occur because typetools is unable to read the parameter types from lambdas on OpenJDK 12+. See jhalterman/typetools#52,

cucumber-java should not be affected. They're separate modules since v4.0.0.

Resolving this requires fixing jhalterman/typetools#52 to make TypeTools to work on Java 12+.

Update

The Cucumber team does not have resources available to fix this. We will deprecate cucumber-java8 at some point in the future.

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