Azure / Azure/azure-sdk-for-java

[BUG] azure-core/native-image.properties has too many entries with wide implications

Open
#43,146 4 comments 0 reactions 0 assignees View on GitHub
Azure.Core bug Client customer-reported needs-team-attention
Dominant language
Java
Stars
2.6k
Forks
2.2k
Avg merge
1d 22h
Merged PRs (30d)
159

Description

https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core/src/main/resources/META-INF/native-image/com.azure/azure-core/native-image.properties

I feel this file has too many build-time initialisations, SLF4J, etc.

This forces client projects of this library, who want to build a native image, to make every class that a logging provider ultimately reaches during initialisation (which can be a lot of classes), to be build-time too. There are some reasons why this can be a) impossible with GraalVM or b) cause other unacceptable problems.

Not everyone uses logback, and the other logging frameworks might cause problems.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.