Skip to content

smallrye rest client RestClientBuilder property setter eliminated during native image generation #1225

@johnaohara

Description

@johnaohara

An application compiled to native with the following;

        sService = RestClientBuilder.newBuilder()
                .baseUrl(uriBuilder.build().toURL())
                .property("resteasy.connectionPoolSize", 30)
                .build(ISearchService.class);

Fails at runtime with the following exception;

....
Caused by: java.lang.IllegalArgumentException: ResteasyClientBuilder setter method not found: connectionPoolSize
        at io.quarkus.smallrye.restclient.runtime.RestClientBuilderImpl.property(RestClientBuilderImpl.java:316)
        at io.quarkus.smallrye.restclient.runtime.RestClientBuilderImpl.property(RestClientBuilderImpl.java:60)
....

It appears that the default constructor for ArrayList() is DCE'd during native image generation.

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions