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

修复BouncyCastleProvider导致graalvm应用报错UnsupportedFeatureError #3464

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

human-user
Copy link
Contributor

说明

由于5.x的ProviderFactory中注册了BouncyCastleProvider,导致在外层利用org.graalvm.nativeimage.hosted.Feature注册的BouncyCastleProvider实际也无效,打包出来的graalvm应用也会报错

com.oracle.svm.core.jdk.UnsupportedFeatureError: Trying to verify a provider that was not registered at build time: BC version 1.7. All providers must be registered and verified in the Native Image builder

参见 #2825#3456
可能涉及#2631

修改描述(包括说明bug修复或者添加新特性)

  1. [bug修复] 先从已注册的provider中查找BC,如果为空才通过SecureUtil.addProvider(provider)注册BC

提交前自测

更改之后,在本地使用GraalVM JDK 17.0.9,在Win10环境打包出来的应用报错消失

@looly
Copy link
Member

looly commented Jan 16, 2024

good job!!

@looly looly merged commit 96fd4e8 into dromara:v5-dev Jan 16, 2024
@looly looly added the bug label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants