Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@NativeImageTest Jackson ObjectMapper update required #7574

Open
oztimpower opened this issue Mar 4, 2020 · 1 comment
Open

@NativeImageTest Jackson ObjectMapper update required #7574

oztimpower opened this issue Mar 4, 2020 · 1 comment
Labels
kind/enhancement New feature or request

Comments

@oztimpower
Copy link
Contributor

Description
Per #7508 the Jackson ObjectMapper was enhanced to keep the Arc configuration for Kotlin, i.e. use the Kotlin ObjectMapper.

Request the same for the NativeImage, when used in conjunction with @NativeImageTest. When the native image is deployed with SAM or on AWS, it works ok - Kotlin data class is able serialize.

Implementation ideas
Only affects @NativeImageTest. test package, LambdaClient.invoke is what is not working.

A similar ObjectMapper update to acknowledge the Kotlin configuration required.

Reproduceable via:
git clone https://github.com/oztimpower/kotlin-lambda.git
mvn package -Dnative
Execute JUnit @NativeImageTest via IDE (IntelliJ)

999-SNAPSHOT - head revision used
@geoand

@oztimpower oztimpower added the kind/enhancement New feature or request label Mar 4, 2020
@geoand
Copy link
Contributor

geoand commented Mar 4, 2020

Yeah... I was sort of afraid this would happen...

Actually for the native test we can't pull of the same trick, because there isn't a JVM running from which we can use CDI to pull the bean.

@stuartwdouglas I have been meaning to discusss with you about similar issues. Basically how we can launch a JVM version of the application for the sole purpose of pulling beans out of Arc and injecting them into native tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants