After upgrade of JDK, I was using JDK-17 and in JUnit Test an error appear with the following description:
Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
The solution to this warning was to add a flag as an argument in STS/Eclipse at VM arguments in JUnit Test, the flag is the following below:
-Xshare:off
Best regards,