-
Notifications
You must be signed in to change notification settings - Fork 59
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
Codegen wrongfully fails on Scala-written kernels #160
Comments
Scala is relatively new, will investigate |
In reality it has an object (i.e. the kernel accesses an object). I've created following simple test program: package boxed
class Logic {
def run(): Unit = {
var result = 5
val closure = () => {
result += 1
}
closure()
println(result)
}
}
object Main {
def main(args: Array[String]): Unit = {
new Logic().run()
}
} Here's the decompiled output:
As you see, it created an instance of If you look here https://github.com/scala/scala/tree/2.13.x/src/library/scala/runtime then you'll see plenty of mutable or lazy boxed primitive types. Maybe you could detect that and provide more informative exception message? Like, detect that object type is from |
Consider this simple test case that has no Java objects in the Kernel:
Code generation still fails, saying: "Using java objects inside kernels is not supported", with this stacktrace:
The text was updated successfully, but these errors were encountered: