-
Notifications
You must be signed in to change notification settings - Fork 106
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
Code inlining and jvm-target #81
Comments
What are you trying to do? We have a gradle option to change a target for kernel (see #39), will it help you if the kernel will be built with 11 target? |
I tried to use a library with inline methods which were built with jvmTarget="11". Now I understand that it is not a simple problem, we usually can't control the target of libraries we use in the notebook and it is quite possible that some of those will be built with different targets. |
Could you please share your notebook (here or in JB Slack direct messages)? I think I know where this error goes from, need to check it. |
Could you please try kernel version (from dev channel) |
It works for 0.8.1.40.dev7 |
They are available in notebook via JavaRuntimeUtils object. Note that snippets compilation target is set by current runtime version, it was done in previous commits. Relates to #81
I've added a possibility to assert version in the notebook like that:
More version utils are available via Also, JVM target for snippets is now set to current JRE version. So, the issue should be fixed now. |
Can it be If I run Kotlin Jupyter on Java 22, JVM target 22 (class file version 66) is unsupported by current Kotlin compiler, so it defaults to 1.8. And I will still get |
I just encountered the following error:
Obviously, the kernel uses JVM 8 as a target and if the library targets 11, there will be problems with inlining. There are several ways to address the problem. There could be a switch in the configuration, or it could use current JDK target as default or both.
The text was updated successfully, but these errors were encountered: