Skip to content

sample-apps/java-basic - incompatible types: java.lang.Void cannot be converted to java.lang.String #424

Open
@pf512

Description

@pf512

When I try to run the deployment script:

./2-deploy.sh mvn

I get the error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project java-basic: Compilation failure [ERROR] <path>/aws-lambda-developer-guide/sample-apps/java-basic/src/test/java/example/InvokeTest.java:[22,42] incompatible types: java.lang.Void cannot be converted to java.lang.String

This is on a M1 MacBook using both Amazon Corretto 8 and 11.

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