ClassCastException in jextract

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Tue May 4 10:35:05 UTC 2021


Hi,

Will you please run jextract with -J-Djextract.debug=true? This should print stack trace on crash. Also, if possible please post header (assuming open source project) or code snippet from there that cases the mentioned failure.

Thanks
-Sundar
________________________________
From: panama-dev <panama-dev-retn at openjdk.java.net> on behalf of Sebastian Stenzel <sebastian.stenzel at gmail.com>
Sent: 03 May 2021 11:05
To: panama-dev at openjdk.java.net <panama-dev at openjdk.java.net>
Subject: ClassCastException in jextract

Hi,

I'm currently attempting to jextract a library on macOS Big Sur but I run into exceptions, both with the latest EA build as well as a locally built snapshot (commit 204518d):

class jdk.internal.jextract.impl.TypeImpl$1 cannot be cast to class jdk.incubator.jextract.Type$Delegated (jdk.internal.jextract.impl.TypeImpl$1 and jdk.incubator.jextract.Type$Delegated are in module jdk.incubator.jextract of loader 'app')

I guess that `TypeImpl$1` refers to `TypeImpl.DelegatedBase`, so the cast should be allowed.

Is there anything I can do to get a more detailed output logged by jextract?

Cheers!
Sebastian


More information about the panama-dev mailing list