Skip to content

R8 minify error on Missing class java.beans.ConstructorProperties from Jackson #844

Open
@deividasstr

Description

@deividasstr

I am getting the following errors on minification builds, I am surprised why this was not reported:

Missing class java.beans.ConstructorProperties (referenced from: void com.fasterxml.jackson.databind.ext.Java7SupportImpl.<init>())
Missing class java.beans.Transient (referenced from: void com.fasterxml.jackson.databind.ext.Java7SupportImpl.<init>())

This comes from Jackson serialization lib, which is brought in to SDK via
io.opentelemetry:opentelemetry-sdk-extension-incubator-> io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi dependencies.

Following local proguard rules workaround the error:

-dontwarn java.beans.ConstructorProperties
-dontwarn java.beans.Transient

But they should be a part of SDKs ruleset.

I don't mind opening a PR if this is approved.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions