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

Whether jdk21 version is supported #540

Closed
dazer007 opened this issue Mar 8, 2024 · 1 comment
Closed

Whether jdk21 version is supported #540

dazer007 opened this issue Mar 8, 2024 · 1 comment

Comments

@dazer007
Copy link

dazer007 commented Mar 8, 2024

There is no problem using JDK jbr17. An error is reported when using JDK jbr21 to start。

# jvm options
-XX:+AllowEnhancedClassRedefinition -XX:HotswapAgent=fatjar --add-opens=java.base/sun.nio.ch=ALL-UNNAMED
Caused by: java.lang.IllegalAccessError: failed to access class sun.nio.ch.ChannelInputStream from class org.hotswap.agent.util.IOUtils (sun.nio.ch.ChannelInputStream is in module java.base of loader 'bootstrap'; org.hotswap.agent.util.IOUtils is in unnamed module of loader 'app')
	at org.hotswap.agent.util.IOUtils.extractFileNameFromInputStream(IOUtils.java:176)
	at org.hotswap.agent.util.IOUtils.extractFileNameFromInputSource(IOUtils.java:221)
	at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java)
	at org.apache.ibatis.parsing.XPathParser.<init>(XPathParser.java:127)
	at com.baomidou.mybatisplus.core.MybatisXMLConfigBuilder.<init>(MybatisXMLConfigBuilder.java:82)
	at com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.buildSqlSessionFactory(MybatisSqlSessionFactoryBean.java:473)
@skybber
Copy link
Contributor

skybber commented Mar 16, 2024

Thanks for report, should be fixed in new 1.4.2-SNAPSHOT release

@skybber skybber closed this as completed Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants