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

GIO Files aren't GObjects #101

Closed
sowelipililimute opened this issue May 31, 2024 · 0 comments
Closed

GIO Files aren't GObjects #101

sowelipililimute opened this issue May 31, 2024 · 0 comments

Comments

@sowelipililimute
Copy link

This causes their asynchronous APIs that rely on AsyncReadyCallbacks to fail, as the first parameter is the file as a GObject.

1java.lang.ClassCastException: class org.gnome.gio.File$FileImpl cannot be cast to class org.gnome.gobject.GObject (org.gnome.gio.File$FileImpl and org.gnome.gobject.GObject are in unnamed module of loader 'app')
[error]         at org.gnome.gio.AsyncReadyCallback.upcall(AsyncReadyCallback.java:67)
[error]         at org.gnome.gio.Application.run(Application.java:1060)
[error]         at Shades.Main$.run$$anonfun$1(Main.scala:84)
[error]         at cats.effect.IOFiber.$anonfun$9(IOFiber.scala:983)
[error]         at cats.effect.unsafe.WorkerThread.blockOn(WorkerThread.scala:857)
[error]         at scala.concurrent.package$.blocking(package.scala:124)
[error]         at cats.effect.IOFiber.runLoop(IOFiber.scala:983)
[error]         at cats.effect.IOFiber.execR(IOFiber.scala:1364)
[error]         at cats.effect.IOFiber.run(IOFiber.scala:112)
[error]         at cats.effect.unsafe.WorkerThread.run(WorkerThread.scala:702)
@jwharm jwharm closed this as completed in 7c06217 Jun 1, 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

1 participant