-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Labels
P2Normal priority items, should be done after P1Normal priority items, should be done after P1persistence-packageFor issues related to the msal4j-persistence-extension packageFor issues related to the msal4j-persistence-extension package
Description
In the persitence msal4extensions, a unusual StandardCharset is used instead of the default java.nio.
This causes issues e.g. during native build.
Error: Discovered unresolved type during parsing: com.nimbusds.jose.util.StandardCharset. This error is reported at image build time because class com.microsoft.aad.msal4jextensions.PersistenceTokenCacheAccessAspect is registered for linking at image build time by command line and command line.
Error encountered while parsing com.microsoft.aad.msal4jextensions.PersistenceTokenCacheAccessAspect.afterCacheAccess(PersistenceTokenCacheAccessAspect.java:143)
There seems no reason to use com.nimbusds.jose.util.StandardCharset over java.nio. Therefor the import should be changed to avoid dependency issues.
Current workaround is to provide a stupid implementation with the same classpath for native build:
package com.nimbusds.jose.util;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
public class StandardCharset {
public static Charset UTF_8 = StandardCharsets.UTF_8;
}
charphi
Metadata
Metadata
Assignees
Labels
P2Normal priority items, should be done after P1Normal priority items, should be done after P1persistence-packageFor issues related to the msal4j-persistence-extension packageFor issues related to the msal4j-persistence-extension package